import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int a,b,c;
String name1;
String name2;
String name3;
System.out.println("enter the first person name");
name1=s.nextLine();
System.out.println("ebter his age");
a=s.nextInt();
System.out.println("enter the second person");
name2=s.nextLine();
System.out.println("enter his age");
b=s.nextInt();
System.out.println("enter the third person");
name3=s.nextLine();
System.out.println("enter his age");
c=s.nextInt();
if(a>b)
System.out.println("first person is older");
else if(b>c)
System.out.println("second person is older");
else
System.out.println("third person isolder ");
}
}