import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	} main {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int [] list = new int [3] ; list new int [3] 3 for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			list[i] = scan.nextInt() ;
		} {
			list[i] = scan.nextInt() ;
		} list[i] = scan.nextInt() list[i] list i scan.nextInt() scan.nextInt scan int result = 101 ; result 101 for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
			if (list[j] < result ) {
				result = list[j] ;
			}
		} {
			if (list[j] < result ) {
				result = list[j] ;
			}
		} if (list[j] < result ) {
				result = list[j] ;
			} list[j] < result list[j] list j result {
				result = list[j] ;
			} result = list[j] result list[j] list j for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		} {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		} if (list[j] == result ) {
				list[j] = 101;
				break;
			} list[j] == result list[j] list j result {
				list[j] = 101;
				break;
			} list[j] = 101 list[j] list j 101 break; int result2 = 101 ; result2 101 for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		} {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		} if (list[j] < result2 ) {
				result2 = list[j] ;
			} list[j] < result2 list[j] list j result2 {
				result2 = list[j] ;
			} result2 = list[j] result2 list[j] list j for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		} {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		} if (list[j] == result2 ) {
				list[j] = 101;
				break;
			} list[j] == result2 list[j] list j result2 {
				list[j] = 101;
				break;
			} list[j] = 101 list[j] list j 101 break; System.out.println(result + result2) System.out.println System.out System System.out result + result2 result result2 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int [] list = new int [3] ;

		for (int i = 0; i < 3; i++) {
			list[i] = scan.nextInt() ;
		}

		int result = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result ) {
				result = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result ) {
				list[j] = 101;
				break;
			}
		}
		int result2 = 101 ;

		for(int j = 0;j < 3; j++) {
			if (list[j] < result2 ) {
				result2 = list[j] ;
			}
		}

		for(int j = 0;j < 3; j++) {
			if (list[j] == result2 ) {
				list[j] = 101;
				break;
			}
		}

		System.out.println(result + result2);
	}
}