max = 0 loc = 1 for i in range (100): a = int (input()) if a > max: max = a loc = i + 1 print (max) print (loc)