Advertisement
Egor_1425

Untitled

Jul 16th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. x, y = map(int, input().split())
  2.  
  3. if y == 0:
  4.     print('No')
  5.     quit()
  6.  
  7. if y == 1:
  8.     if x == 0:
  9.         print('Yes')
  10.     else:
  11.         print('No')
  12.     quit()
  13.  
  14. print('Yes' if x >= y - 1 and (x - y + 1) % 2 == 0 else 'No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement