import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	} main {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int[] a = new int[3]; a new int[3] 3 int count = 0; count 0 while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		} in.hasNextInt() in.hasNextInt in {
			a[count] = in.nextInt();
			count++;
		} a[count] = in.nextInt() a[count] a count in.nextInt() in.nextInt in count++ count in.close() in.close in Arrays.sort(a) Arrays.sort Arrays a System.out.println(a[0] + a[1]) System.out.println System.out System System.out a[0] + a[1] a[0] a 0 a[1] a 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] a = new int[3];
		int count = 0;
		while(in.hasNextInt()) {
			a[count] = in.nextInt();
			count++;
		}
		in.close();
		Arrays.sort(a);
		System.out.println(a[0] + a[1]);
	}

}