Fourth Power

0

0 votes
Easy
Problem

You are given a number and you have to find whether the given number is equal to the sum of the fourth power of their digits (not digit) or not.

INPUT :

First line contains the number N.

OUTPUT :

Print 'Fourth Power' if it satisfies the above condition otherwise print 'NON Fourth Power'.

CONSTRAINTS :

0 <= N <= 10^8

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

Given number is 1234 so 14 + 24 + 34 + 44   = 354 which is not equal to 1234 so output is NON Fourth Power

Editor Image

?