Submit solution
Points:
3
Time limit:
1.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Java
and
. He categorizes people as follows:
Let be the number of messages sent between him and the other person.
- If
, then the other person is a stranger to him.
- If
, then the other person is a friend to him.
- If
, then the other person is a good friend to him.
Constraints
Input Specifications
The first and only line will contain space-separated integers .
Output Specifications
Output either stranger
, friend
, or good friend
, depending on the categorization above.
Sample Input 1
10000 100000 87105
Sample Output 1
friend
Sample Input 2
5000 25000 25000
Sample Output 2
good friend
Comments