能看懂题目,就没问题了
#include <bits/stdc++.h>
using namespace std;
int s,v1,v2,t1,t2;
int main()
{
ios::sync_with_stdio(false);
cin >> s >> v1 >> v2 >> t1 >> t2;
int first = s*v1 + t1*2;
int second = s*v2 + t2*2;
if(first < second)
cout << "First" << endl;
else if(first > second)
cout << "Second" <<endl;
else
cout << "Friendship" << endl;
return 0;
}