- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1924.py
More file actions
Latest commit
49 lines (43 loc) · 801 Bytes
/
Copy path1924.py
File metadata and controls
49 lines (43 loc) · 801 Bytes
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
45
46
47
48
defdays(m, d) ->int:
ifm==1:
returnd
elifm==2:
return31+d
elifm==3:
return59+d
elifm==4:
return90+d
elifm==5:
return120+d
elifm==6:
return151+d
elifm==7:
return181+d
elifm==8:
return212+d
elifm==9:
return243+d
elifm==10:
return273+d
elifm==11:
return304+d
elifm==12:
return334+d
else:
return0
x, y=map(int, input().split())
d=days(x, y)
ifd%7==1:
print("MON")
elifd%7==2:
print("TUE")
elifd%7==3:
print("WED")
elifd%7==4:
print("THU")
elifd%7==5:
print("FRI")
elifd%7==6:
print("SAT")
else:
print("SUN")