【Codeforces Round #427 (Div. 2) A】Key races
傻逼题.
#include <bits/stdc++.h>
using namespace std;
#define int long long
int n,v1,v2,t1,t2;
main(){
scanf("%lld%lld%lld%lld%lld",&n,&v1,&v2,&t1,&t2);
int a = v1*n+t1*2,b = v2*n+t2*2;
if (a < b)
puts("First");
else
if (a>b)
puts("Second");
else
puts("Friendship");
return 0;
}