num=[] i=100 while i: i-=1 x=input() num.append(x) maxn=max(num) indexn=num.index(maxn)+1 print(maxn) print(indexn)