12265

Problem ID: 12265

See also: LA 4950, SPOJ NWERC10G