Sunny thinks a number is funny if its digital root is $ 6 $. The digital root of a non-negative integer is obtained through repeated addition of its digits, until the result is a single-digit number.
Consider the number $ 43647 $. $ 4 + 3 + 6 + 4 + 7 = 24 $ and $ 2 + 4 = 6 $. Then the digital root of $ 43647 $ is $ 6 $. So funny. In fact, Sunny has been laughing at this number for a solid 10 minutes now.
Input
The only line of input contains an integer $ N $. ($ 0 \le N \le 10^{100000} $)
Output
If the digital root of $ N $ is $ 6 $, output Funny
.
Otherwise, output Not funny, didn't laugh
.
Sample Test Cases
Input | Output | |
---|---|---|
69420 | Not funny, didn't laugh | |
6942069420 | Funny |
Scoring: Per Case
Authored by s16f22