1088

Problem ID: 1088

See also: UVa 11495, br.SPOJ BALDES