Welcome to planet Xenon. The residents of planet X know each other by their unique identity number.This number is called Xenon number. The Xenon number identifies the characteristics of the person on planet Xenon. Let's say that the Xenon number is N , then:- Friendly nature = Sum of even digits in N. Evil nature = Sum of Odd digits in N.
Monk is new to planet Xenon , as he has recently shifted there and he's in search of a roommate. Help him find his ideal roommate.
You are given the Xenon number of few residents of the planet Xenon. You need to find out whether the particular person has a friendly or evil nature.
INPUT The first line will consist of an integer T denoting the number Xenon numbers you have. The following T lines will contain an integer N denoting the Xenon number of the i th resident.
OUTPUT
For test case :1 N=256 Sum of even digits =2+6=8 Sum of odd digits = 5 As sum of even digits > Sum of odd digits , Therefore print " friendly"
For test case :2 N=124 Sum of even digits = 2+4=6 Sum of odd digits = 1 As sum of even digits < Sum of odd digits , Therefore print " evil"