Easy Problem from Rujia Liu?

UVA - 11991