https://www.acmicpc.net/problem/2562
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int a=0;
int m=0;
for(int i=1;i<=9;i++){
int n=s.nextInt();
if(n>a){
a=n;
m=i;
}
}
System.out.format("%d\n",a);
System.out.format("%d",m);
}
}
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int a=0;
int m=0;
for(int i=1;i<=9;i++){
int n=s.nextInt();
if(n>a){
a=n;
m=i;
}
}
System.out.format("%d\n",a);
System.out.format("%d",m);
}
}