fork download
  1. def main():
  2. import sys
  3.  
  4. data = sys.stdin.read().strip().split()
  5. if len(data) != 2:
  6. return
  7.  
  8. X, Y = data
  9. X = X.strip()
  10. Y = Y.strip()
  11.  
  12. order = {"Ocelot": 0, "Serval": 1, "Lynx": 2}
  13.  
  14. if X not in order or Y not in order:
  15. print("No")
  16. return
  17.  
  18. print("Yes" if order[X] >= order[Y] else "No")
  19.  
  20.  
  21. if __name__ == "__main__":
  22. main()
Success #stdin #stdout 0.07s 14136KB
stdin
odd
stdout
Standard output is empty