fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args)
  8. {
  9. Scanner in = new Scanner(System.in);
  10. int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
  11. System.out.println(Math.max(Math.max(a, b), c) + Math.min(Math.min(a, b), c));
  12. }
  13. }
Success #stdin #stdout 0.07s 2184192KB
stdin
213 6554 234
stdout
6767