Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M = 24
- N = 5
- Y = int(input())
- if 1900 <= Y <= 2099:
- a = Y % 19
- b = Y % 4
- c = Y % 7
- d = (19 * a + M) % 30
- e = (2 * b + 4 * c + 6 * d + N) % 7
- husvet = [3, d + e + 22] if d + e < 10 else [4, d + e - 9]
- if husvet == [4, 26]:
- husvet = [4, 19]
- if husvet == [4, 25] and d == 28 and e == 6 and a > 10:
- husvet = [4, 18]
- print(husvet)
Advertisement
Add Comment
Please, Sign In to add comment