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

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	} main {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] arr = new int[3]; arr new int[3] 3 for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		} int i = 0 ; int i = 0 ; i 0 i<3 i 3 i++ i++ i {
			arr[i] = sc.nextInt();
		} {
			arr[i] = sc.nextInt();
		} arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc Arrays.parallelSort(arr) Arrays.parallelSort Arrays arr int sum = 0; sum 0 for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		} int i = 0 ; int i = 0 ; i 0 i<2 i 2 i++ i++ i {
			sum+=arr[i];
		} {
			sum+=arr[i];
		} sum+=arr[i] sum arr[i] arr i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	}

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

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] arr = new int[3];
		for(int i = 0 ; i<3;i++) {
			arr[i] = sc.nextInt();
		}
		Arrays.parallelSort(arr);
		int sum = 0;
		for(int i = 0 ;i<2;i++) {
			sum+=arr[i];
		}
		System.out.println(sum);
	}

}
