problems 61, 62 in longs