1233

Problem ID: 1233

See also: UVa 12493, SPOJ STARSBC