fork download
  1. s1 = input()
  2. s2 = input()
  3.  
  4. def check(s1, s2):
  5. if s1 == s2:
  6. return 0
  7. elif s1 < s2:
  8. return 1
  9. else:
  10. return 2
  11.  
  12. print(check(s1, s2))
  13.  
Success #stdin #stdout 0.09s 14184KB
stdin
Nguyen An
Nguyen Binh
stdout
1