eolymp
bolt
Try our new interface for solving problems
Problems

The Way Home

The Way Home

The donkey Ia is returning home after a keen game in guests in Vinni Puh. He decided to have a walk. During a walk he thought about his birthday all of the time, which was approached. That’s shy he did not notice as strayed. It is known that a donkey during a walk always moves by a same algorithm. At the beginning of the walk he always begins motion to north-east and passing here to one step (he moving here in a point (\textbf{1},\textbf{1})). Then he changes his direction and moves to southeast, farther to south-west, and to north-west etc. A donkey always does to \textbf{N}-steps more than he did before changed direction at every changes of direction. When a donkey decided to return home he discovered that he is situated deeply at the forest. Ia wanted to get home as quick as possible because night approached. Please, help to know, whether will succeed today a donkey get home before will be sunset of the sun. It is known that a sun will sunset through \textbf{T}-hours, and speed of donkeys movement is \textbf{V}-step on an hour. It is known that a donkey began its motion with a point with coordinates (\textbf{0}, \textbf{0}), and his house is located in a point (\textbf{hx}, \textbf{hy}), and you know that he changed the direction of his motion \textbf{K}-times. \textbf{Input} There are four integers \textbf{N}, \textbf{K}, \textbf{T}, \textbf{V} in the first line (\textbf{0} ≤ \textbf{N}, \textbf{K}, \textbf{T}, \textbf{V} ≤ \textbf{100}). There are two integers \textbf{hx}, \textbf{hy} in the second line. They are coordinates of donkeys’ house (\textbf{-10^5} ≤ \textbf{hx}, \textbf{hy} ≤ \textbf{10^5}). \OutputFile You have to write "\textbf{Good night Ia}" (without quotation marks), if a donkey will have enough time to get home before sun will sunset and write "\textbf{Poor Ia}" in other case.
Time limit 1 second
Memory limit 64 MiB
Input example #1
17 42 0 37
4731 3093
Output example #1
Poor Ia