2368

Problem ID: 2368

See also: br.SPOJ SIMUL09