← Back to List

33046번: Alea Iacta Est ↗

Solutions

Python 3
136 B | 136 chars
a, b = map(int, input().split())
c, d = map(int, input().split())

s = a + b + c + d - 1

s = s % 4

if s == 0:
    s = 4
    
print(s)