Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第三次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 83ms
Memory: 24644kB
Author: million
In contest: 1123

import datetime
jr=[9,6,5,5,5,5,6]

T = int(input())
for case in range(T):
	x=datetime.date(int(input()),5,1).weekday()
	print (jr[x])