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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[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 sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[1]);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[1]);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[1]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int[] array = new int[3]; array new int[3] 3 array[0]=n array[0] array 0 n array[1]=m array[1] array 1 m array[2]=k array[2] array 2 k long count=0; count 0 Arrays.sort(array) Arrays.sort Arrays array System.out.println(array[0]+array[1]) System.out.println System.out System System.out array[0]+array[1] array[0] array 0 array[1] array 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[1]);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[1]);
	}
} 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 n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();

		int[] array = new int[3];
		array[0]=n;
		array[1]=m;
		array[2]=k;

		long count=0;
		Arrays.sort(array);

		/*if(n==m) {
			System.out.println(n*2);
		}else {
			System.out.println(Math.max(n, m)+Math.max(n, m)-1);
		}*/

		System.out.println(array[0]+array[1]);
	}
}


