12493

Problem ID: 12493

See also: URI 1233, SPOJ STARSBC