N=raw_input() a0=raw_input() rank=1 print rank for a in range(int(N)-1): an=raw_input() if int(a0)