Solve Uva 10591 - Happy Number.