forked from AndreAlbu/Questoes-beecrowd-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1279.py
44 lines (22 loc) · 701 Bytes
/
1279.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
pula = 0
while(1):
try:
ano = int(input())
b = 0
ord = 1
if(pula):
print("")
pula = 1
if(ano % 4 == 0 and ano % 100 != 0 or ano % 400 == 0):
print("This is leap year.")
b = 1
ord = 0
if(ano % 15 == 0):
print("This is huluculu festival year.")
ord = 0
if(ano % 55 == 0 and b):
print("This is bulukulu festival year.")
if(ord):
print('This is an ordinary year.')
except EOFError:
break