N = int(input()) while True: M = int(input()) if (N == M): print("RIGHT") break elif (N > M): print("UP") else: print("DOWN")
To embed this project on your website, copy the following code and paste it into your website's HTML: