import java.util.PriorityQueue;
import java.util.Scanner;

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();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    }
} import java.util.PriorityQueue; PriorityQueue java.util import java.util.Scanner; Scanner 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();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    }
} 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();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    } main {

        Scanner sc = new Scanner(System.in);
        int P = sc.nextInt();
        int Q = sc.nextInt();
        int R = sc.nextInt();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    } 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 PriorityQueue<Integer> q = new PriorityQueue<Integer>( ); q new PriorityQueue<Integer>( ) q.add(P) q.add q P q.add(Q) q.add q Q q.add(R) q.add q R System.out.println(q.poll()+q.poll()) System.out.println System.out System System.out q.poll()+q.poll() q.poll() q.poll q q.poll() q.poll q 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();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    }
} 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();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    }
} Main
import java.util.PriorityQueue;
import java.util.Scanner;

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();
        PriorityQueue<Integer> q = new PriorityQueue<Integer>( );
        
        q.add(P);
        q.add(Q);
        q.add(R);
        System.out.println(q.poll()+q.poll());
        
    }
}
