@staticmethod
def a():
    (*a,) = map(int, sys.stdin.read().split())
    a = sorted(enumerate(a), key=(lambda x: (- x[1])))
    res = ([None] * 3)
    for i in range(3):
        res[a[i][0]] = (i + 1)
    print(*res, sep='\n')
@staticmethod
def a():
    (*a,) = map(int, sys.stdin.read().split())
    a = sorted(enumerate(a), key=(lambda x: (- x[1])))
    res = ([None] * 3)
    for i in range(3):
        res[a[i][0]] = (i + 1)
    print(*res, sep='\n')