Misc [0]
Misc [0]
You are a swinging on circular string in a counter clockwise direction, and every second you will move ba revolutions around the circle.
You start off facing North, but wonder if at any integer second in the future you'll be facing exactly South, East or West.
Input
Input will contain two space-separated positive integers a and b.
Output
If you will never face South, East or West at an integer time, print Free!
Otherwise, print Other axis!
Constraints
- 1≤a,b≤106
Example
4 6
Free!
Explanation
Every second you will move 64=32 rotations, which looks like the following at seconds 0, 1, 2, 3 (and then repeats):

So you'll never be facing any cardinal direction but North.
Comments0
No comments yet
Be the first to comment.
New comment
Log in to join the discussion.