import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc int Z = sc.nextInt(); Z sc.nextInt() sc.nextInt sc if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		} X>=Y X Y {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		} if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			} X>=Z X Z {
				System.out.println(Y+Z);
			} System.out.println(Y+Z) System.out.println System.out System System.out Y+Z Y Z {
				System.out.println(X+Y);
			} System.out.println(X+Y) System.out.println System.out System System.out X+Y X Y {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		} if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			} Y>=Z Y Z {
				System.out.println(X+Z);
			} System.out.println(X+Z) System.out.println System.out System System.out X+Z X Z {
				System.out.println(X+Y);
			} System.out.println(X+Y) System.out.println System.out System System.out X+Y X Y String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();

		if(X>=Y) {
			if(X>=Z) {
				System.out.println(Y+Z);
			}else {
				System.out.println(X+Y);
			}
		}else {
			if(Y>=Z) {
				System.out.println(X+Z);
			}else {
				System.out.println(X+Y);
			}
		}
	}
}
