problem 52

indecently solved this