Shak is a new programmer and he knows nothing about algorithms. He has made a plan and decided to learn a new algorithm every day. Saturday and Sunday are specials. He will learn one extra algorithm these days.
Today is Wednesday. Shak is going to start today. He wants to know how many algorithms he will learn exactly after N days.
First line contains an integer , denoting the number of testcases.
Each testcase contains an integer , denoting the number of days.
For each testcase, print the answer in seperate lines.
3 3 4 7
3 5 9
Login to submit