Codeforces Round 427 (Div. 2)
A
Key races
Codeforces
800
原题
←B →
翻译中…

Two boys decided to compete in text typing on the site "Key races". During the competition, they have to type a text consisting of $*s*$ characters. The first participant types one character in $*v*_{1}$ milliseconds and has ping $*t*_{1}$ milliseconds. The second participant types one character in $*v*_{2}$ milliseconds and has ping $*t*_{2}$ milliseconds.

翻译中…

If connection ping (delay) is $*t*$ milliseconds, the competition passes for a participant as follows:

翻译中…
  1. Exactly after $*t*$ milliseconds after the start of the competition the participant receives the text to be entered.
  2. Right after that he starts to type it.
  3. Exactly $*t*$ milliseconds after he ends typing all the text, the site receives information about it.
翻译中…

The winner is the participant whose information on the success comes earlier. If the information comes from both participants at the same time, it is considered that there is a draw.

翻译中…

Given the length of the text and the information about participants, determine the result of the game.

翻译中…

Input

翻译中…

The first line contains five integers $*s*$, $*v*_{1}$, $*v*_{2}$, $*t*_{1}$, $*t*_{2}$ ($1 ≤ *s*, *v*_{1}, *v*_{2}, *t*_{1}, *t*_{2} ≤ 1000$) — the number of characters in the text, the time of typing one character for the first participant, the time of typing one character for the the second participant, the ping of the first participant and the ping of the second participant.

翻译中…

Output

翻译中…

If the first participant wins, print "First". If the second participant wins, print "Second". In case of a draw print "Friendship".

翻译中…

Note

翻译中…

In the first example, information on the success of the first participant comes in $7$ milliseconds, of the second participant — in $14$ milliseconds. So, the first wins.

翻译中…

In the second example, information on the success of the first participant comes in $11$ milliseconds, of the second participant — in $5$ milliseconds. So, the second wins.

翻译中…

In the third example, information on the success of the first participant comes in $22$ milliseconds, of the second participant — in $22$ milliseconds. So, it is be a draw.

翻译中…

样例

Input #1
5 1 2 1 2
Output #1
First
InputCopy OutputCopy
Input #2
3 3 1 1 1
Output #2
Second
InputCopy OutputCopy
Input #3
4 5 3 1 5
Output #3
Friendship
InputCopy OutputCopy
题目信息
题号
835A
时间限制
1 s
内存限制
256 MB
标签
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。