fork download
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. d = int(input())
  5.  
  6. if (a + b) % 2 == (c + d) % 2:
  7. print("да")
  8. else:
  9. print("нет")
  10.  
Success #stdin #stdout 0.02s 7248KB
stdin
1
1
2
2
stdout
да