Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第三次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 147ms
Memory: 24040kB
Author: 13666577021
In contest: 1087

a=int(raw_input())
for i in range(0,a):
	import calendar
	year=int(raw_input())
	month=5
	k=calendar.monthrange(year,month)
	if k[0]==0:
		s=9
	elif k[0]==1 or k[0]==6:
		s=6
	else:
		s=5
	print s