Rosetta Problems

Beginner Free Contest 38 - HAPPYNUM

https://oj.vnoi.info/problem/fcb038_happynum