PCK2013 Problem 3