UVa 644, kinda weird..Asking for help..