2340

Problem ID: 2340

See also: br.SPOJ BACT09