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: 120ms
Memory: 23560kB
Author: 13777156513
In contest: 1087

#!usr/bin/python
#-*- coding: UTF-8 -*-
import datetime;
n=int(raw_input())
li=[]
jr=[9,6,5,5,5,5,6]
for year in range(n):
	week=datetime.date((input()),5,1).weekday()
	print jr[week]