package my;
import java.util.Scanner;
public class greatest {
public static void findGreat(int a,int b,int c)
{
if(a>c)
System.out.println(a+" is greatest");
else
System.out.println(c+" is greatest");
if(b>c)
System.out.println(b+" is greatest");
else
System.out.println(c+ " is greatest");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner my = new Scanner(System.in);
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
int c = Integer.parseInt(args[2]);
findGreat(a,b,c);
}
}