import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a=new int[4]; int k=0; for(int i=0;i<4;i++) { a[i]=sc.nextInt(); if(a[i]>k) { k=a[i]; } } System.out.println(k); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a=new int[4]; int k=0; for(int i=0;i<4;i++) { a[i]=sc.nextInt(); if(a[i]>k) { k=a[i]; } } System.out.println(k); } }