import sys V=map(int,sys.stdin) for v in V:print-~sorted(V)[::-1].index(v)