fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. const int Mod=1e9+7;
  5. const ll INF = 10000000000000;
  6. const int N = 1e6+7;
  7.  
  8. void solve() {
  9. int a,b,c,d;
  10. cin >> a >> b >> c >> d;
  11. int n1 = min(a,c);
  12. int n2 = min(b,d);
  13. if(n1>=n2){
  14. cout << "Gellyfish" << '\n';
  15. }
  16. else cout << "Flower\n";
  17. }
  18. int main(){
  19. ios::sync_with_stdio(false);
  20. cin.tie(nullptr);
  21.  
  22. int t;
  23. cin >> t;
  24. while (t--) solve();
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0.01s 5284KB
stdin
5
1 2 3 4
100 999 1 1
10 20 10 30
12 14 13 11
998 244 353 107
stdout
Flower
Gellyfish
Flower
Gellyfish
Gellyfish