12243

Problem ID: 12243

See also: LA 4810, URI 1140, SPOJ MFLAR10