2366

Problem ID: 2366

See also: br.SPOJ MARAT09