1087

Problem ID: 1087

See also: UVa 11494