On the problem of tsunami run-up to a flat shore