a = int(input())
g1 = int(input())

if (a == g1):
    print("RIGHT")
else:
    if (a > g1):
        print("UP")
        g2 = int(input())
        if (a == g2):
            print("RIGHT")
        elif (a > g2):
            print("UP")
        else:
            print("DOWN")
    else:
        print("DOWN")
        if (a == g2):
            print("RIGHT")
        elif (a > g2):
            print("UP")
        else:
            print("DOWN")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: