Help me in solving CBSPEED problem

My issue

why can’t we write in the first line as
x=int(input())
y=int(input())
or just
x,y= map(int,input().split())

My code

# cook your dish here
X,Y= [int(i) for i in input().split()]
if Y>X:
    print("YES")
else:
    print("No")

Learning course: Practice Python
Problem Link: CodeChef: Practical coding for everyone

@manmeet18
u can take the input in any way u want .