1247

Problem ID: 1247

See also: br.SPOJ GUARDCOS