# Original Paxa program. Inputs: integer x, then integer y.
x = int(input())
y = int(input())

if x < 0 or x > 80 or y < 0 or y > 40:
    print("Outside map")
else:
    if x <= 4:
        print("West edge")
    elif x >= 76:
        print("East edge")

    if y <= 4:
        print("South edge")
    elif y >= 36:
        print("North edge")

    if x > 4 and x < 76 and y > 4 and y < 36:
        print("Interior")
