
import java.util.Arrays;
import java.util.Scanner;

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

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    } main {
        Scanner scanner = new Scanner(System.in);

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] pqr = new int[3]; pqr new int[3] 3 for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        } int i = 0 ; int i = 0 ; i 0 i < 3 i 3 i++ i++ i {
            pqr[i] = scanner.nextInt();
        } {
            pqr[i] = scanner.nextInt();
        } pqr[i] = scanner.nextInt() pqr[i] pqr i scanner.nextInt() scanner.nextInt scanner Arrays.sort(pqr) Arrays.sort Arrays pqr System.out.println(pqr[0] + pqr[1]) System.out.println System.out System System.out pqr[0] + pqr[1] pqr[0] pqr 0 pqr[1] pqr 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    }
} Main

import java.util.Arrays;
import java.util.Scanner;

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

        int[] pqr = new int[3];
        
        for (int i = 0 ; i < 3 ; i++) {
            pqr[i] = scanner.nextInt();
        }

        Arrays.sort(pqr);

        System.out.println(pqr[0] + pqr[1]);
    }
}
