2322

Problem ID: 2322

See also: br.SPOJ PECA7