package main
import (
"fmt"
"math"
)
func main() {
var x int
var ret = int(math.MinInt64)
var id = 0
for i:=0;i<100;i++ {
fmt.Scanf("%d",&x)
if ret < x {
ret = x
id = i
}
}
fmt.Println(ret)
fmt.Println(id+1)
}