Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d = int(input())
- m = int(input())
- e = int(input())
- m -= 2
- if m < 1:
- m += 12
- e -= 1
- c = int(e / 100)
- y = e % 100
- r = d + ((13 * m - 1) // 5) + y + (y // 4 + c // 4 - 2 * c + 777)
- r %= 7
- print(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement