HZNUOJ


Problem_ID: A
Result: Accepted
Time: 140ms
Memory: 24040kB
Author: 18958157632
In contest: 1087

import calendar
nw = [9,6,5,5,5,5,6]
for i in range(int(raw_input())):print nw[calendar.weekday(int(raw_input()),5,1)]