import java.util.*;
public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	}
} Main public static void main(String[] args){
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	} main {
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int P = sc.nextInt(); P sc.nextInt() sc.nextInt sc int Q = sc.nextInt(); Q sc.nextInt() sc.nextInt sc int R = sc.nextInt(); R sc.nextInt() sc.nextInt sc sc.close() sc.close sc int[] arr = new int[]{P + Q, Q + R, R + P}; arr new int[]{P + Q, Q + R, R + P} int min = arr[0]; min arr[0] arr 0 for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		} int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		} {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		} int v = arr[i]; v arr[i] arr i if (v < min) {
				min = v;
			} v < min v min {
				min = v;
			} min = v min v System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	}
} public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System.in);
		int P = sc.nextInt();
		int Q = sc.nextInt();
		int R = sc.nextInt();
		sc.close();

		int[] arr = new int[]{P + Q, Q + R, R + P};

		int min = arr[0];
		for (int i = 0; i < arr.length; i++) {
			int v = arr[i];
			if (v < min) {
				min = v;
			}
		}
		System.out.println(min);
	
	}
}