UVa 11991 - Easy Problem from Rujia Liu?