import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	}
} Main public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	} main {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String N = in.readLine(); N in.readLine() in.readLine in String[] tmp = N.split(" "); tmp N.split(" ") N.split N " " int ans = 0 ; ans 0 int max = 0; max 0 for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		} int i=0; int i=0; i 0 i<tmp.length i tmp.length tmp tmp.length i++ i++ i {
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		} {
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		} int x = Integer.parseInt(tmp[i]); x Integer.parseInt(tmp[i]) Integer.parseInt Integer tmp[i] tmp i ans +=x ans x if(max < x){
				max = x;
			} max < x max x {
				max = x;
			} max = x max x ans -= max ans max System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String N = in.readLine();
		String[] tmp = N.split(" ");

		int ans = 0 ;
		int max = 0;

		for(int i=0;i<tmp.length;i++){
			int x = Integer.parseInt(tmp[i]);
			ans +=x;
			if(max < x){
				max = x;
			}
		}
		ans -= max;

		System.out.println(ans);
	}
}
