1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 #include <cstdio> 5 #include <vector> 6 #include <cstdlib> 7 #include <iomanip> 8 #include <cmath> 9 #include <ctime> 10 #include <map> 11 #include <set> 12 using namespace std; 13 #define lowbit(x) (x&(-x)) 14 #define max(x,y) (x>y?x:y) 15 #define min(x,y) (x<y?x:y) 16 #define MAX 100000000000000000 17 #define MOD 1000000007 18 #define pi acos(-1.0) 19 #define ei exp(1) 20 #define PI 3.141592653589793238462 21 #define INF 0x3f3f3f3f3f 22 #define mem(a) (memset(a,0,sizeof(a))) 23 typedef long long ll; 24 ll gcd(ll a,ll b){ 25 return b?gcd(b,a%b):a; 26 } 27 const int N=205; 28 const int mod=1e9+7; 29 30 int main() 31 { 32 std::ios::sync_with_stdio(false); 33 int s,v1,v2,t1,t2; 34 cin>>s>>v1>>v2>>t1>>t2; 35 int s1=s*v1+2*t1; 36 int s2=s*v2+2*t2; 37 if(s1<s2) cout<<"First"<<endl; 38 else if(s1==s2) cout<<"Friendship"<<endl; 39 else cout<<"Second"<<endl; 40 return 0; 41 }