a=map(int,open('/dev/fd/0')) for e in a:print-~sorted(a)[::-1].index(e)