← Back to List

18005번: Even or Odd? ↗

Solutions

Python 3
69 B | 69 chars
a = int(input())
if a %2==1:
    print(0)
else:
    print(2-(a//2)%2)