4814

Problem ID: 4814

See also: UVa 12247, URI 1321, SPOJ MJLAR10