2026-04-25 20:39:26 +09:00

1 line
71 B
Python

print((lambda n : x if 0 < (x := n%8) < 5 else (10-x)%8)(int(input())))