Help me in solving WAITTIME problem

My issue

My code

t=int(input())
for i in range(t):
    x=int(input())
    k=7-x
    print(k)
    

Problem Link: WAITTIME Problem - CodeChef

You need to take two inputs in the for loop .
Use :

K,X=map(int,input().split())

K is the number of weeks
So K (converted to days)=7K
X= Days Already Spent
So remaining time = 7
K -X

Hello Anitha!

You are supposed to accept 2 inputs.

num1, num2 = map(int, input().split())