uva 10344, careless mistakes