12149

Problem ID: 12149

See also: LA 4215, URI 1323, SPOJ SAMER08F