You have n gold coins with you. You wish to divide them among three of your friends under the following conditions:
Input
Four lines. The first line is the number of coins you have. The next three lines are the shares given to your three friends. All inputs are non-negative integers.
Output
A single line: FAIR if the division satisfies all three conditions, UNFAIR
otherwise.
Example
Input:
10
2
3
5
Output:
FAIR
Write a complete program: read the input with input() and print the result with print().
Input
10
2
3
5
Output
FAIR