Help me in solving LEADGAME problem

My issue

I can’t find how input will be provided in one line or in different lines.

My code

_input=list(map(int,input().split()))
round=_input[0]
del _input[0]
lead=0
win=0
for x in range(0,len(_input),2):
    
    if abs(_input[x]-_input[x+1])>lead:
        lead=abs(_input[x]-_input[x+1])
        if _input[x]-_input[x+1]>0:
            win=1
        if _input[x+1]-_input[x]>0:
            win=2
print(win,lead)

Problem Link: CodeChef: Practical coding for everyone