x = int(input("enter x "))
y = int(input("enter y "))

if(x > 0 and y > 0):
    print("1st Quad")
if(x < 0 and y > 0):
    print("2nd Quad")
if(x < 0 and y < 0):
    print("3rd Quad")
if(x > 0 and y < 0):
    print("4th Quad")
