• Source
    1. import java.util.*;
    2.  
    3.  
    4.  
    5. public class Main
    6.  
    7. {
    8.  
    9. public static void main(String[] args)
    10.  
    11. {
    12.  
    13. Scanner con = new Scanner(System.in);
    14.  
    15. int a = con.nextInt();
    16.  
    17. int b = con.nextInt();
    18.  
    19. int c = con.nextInt();
    20.  
    21.  
    22.  
    23. int res = a;
    24.  
    25. if (b < res) res = b;
    26.  
    27. if (c < res) res = c;
    28.  
    29.  
    30.  
    31. System.out.println(res);
    32.  
    33. con.close();
    34.  
    35. }
    36.  
    37. }