PCK2013 Problem 6