import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a1 = sc.nextInt(); int a2 = sc.nextInt(); int a3 = sc.nextInt(); int max = Math.min(a1, a2); int result = Math.min(max, a3); System.out.println(result); sc.close(); } }