import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	}
	
	
} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	}
	
	
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	} main {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.sort(Comparator.naturalOrder()) list.sort list Comparator.naturalOrder() Comparator.naturalOrder Comparator System.out.println(list.get(0) + list.get(1)) System.out.println System.out System System.out list.get(0) + list.get(1) list.get(0) list.get list 0 list.get(1) list.get list 1 String[] args args public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	}
	
	
} public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	}
	
	
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		List<Integer> list = new ArrayList<>();
		list.add(sc.nextInt());	// P
		list.add(sc.nextInt());	// Q
		list.add(sc.nextInt());	// R
		
		list.sort(Comparator.naturalOrder());
		
		System.out.println(list.get(0) + list.get(1));
	}
	
	
}