fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int r, e, z, o;
  6. cin >> r >> e >> z >> o;
  7. if (r > e && r > z && r > o)
  8. cout << "Rodion";
  9. else if (e > r && e > z && e > o)
  10. cout << "Erali";
  11. else if (z > r && z > e && z > o)
  12. cout << "Zalina";
  13. else
  14. cout << "Olya";
  15. return 0;
  16. }
  17.  
  18.  
Success #stdin #stdout 0.01s 5296KB
stdin
9 7 8 5
stdout
Rodion