import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static void sortNatualOrder(List<Integer> intList) {
        for (int i = 0; i < intList.size() - 1; i++) {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util class Main {

    public static void main(String[] args) throws Exception {

        try {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static void sortNatualOrder(List<Integer> intList) {
        for (int i = 0; i < intList.size() - 1; i++) {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        }
    }
} Main public static void main(String[] args) throws Exception {

        try {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> input = Arrays.asList(br.readLine().split(" ")); input Arrays.asList(br.readLine().split(" ")) Arrays.asList Arrays br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " List<Integer> airportToAiport = new ArrayList<>(); airportToAiport new ArrayList<>() for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            } String s input {
                airportToAiport.add(Integer.parseInt(s));
            } {
                airportToAiport.add(Integer.parseInt(s));
            } airportToAiport.add(Integer.parseInt(s)) airportToAiport.add airportToAiport Integer.parseInt(s) Integer.parseInt Integer s sortNatualOrder(airportToAiport) sortNatualOrder airportToAiport int firstMin = airportToAiport.get(0); firstMin airportToAiport.get(0) airportToAiport.get airportToAiport 0 int secondMin = airportToAiport.get(1); secondMin airportToAiport.get(1) airportToAiport.get airportToAiport 1 System.out.println(firstMin + secondMin) System.out.println System.out System System.out firstMin + secondMin firstMin secondMin String[] args args private static void sortNatualOrder(List<Integer> intList) {
        for (int i = 0; i < intList.size() - 1; i++) {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        }
    } sortNatualOrder {
        for (int i = 0; i < intList.size() - 1; i++) {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        }
    } for (int i = 0; i < intList.size() - 1; i++) {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        } int i = 0; int i = 0; i 0 i < intList.size() - 1 i intList.size() - 1 intList.size() intList.size intList 1 i++ i++ i {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        } {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        } for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            } int j = intList.size() - 1; int j = intList.size() - 1; j intList.size() - 1 intList.size() intList.size intList 1 j > i j i j-- j-- j {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            } {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            } if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                } intList.get(j -1) > intList.get(j) intList.get(j -1) intList.get intList j -1 j 1 intList.get(j) intList.get intList j {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                } int tmp = intList.get(j - 1); tmp intList.get(j - 1) intList.get intList j - 1 j 1 intList.set(j - 1, intList.get(j)) intList.set intList j - 1 j 1 intList.get(j) intList.get intList j intList.set(j, tmp) intList.set intList j tmp List<Integer> intList intList
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

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

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> airportToAiport = new ArrayList<>();

            for (String s : input) {
                airportToAiport.add(Integer.parseInt(s));
            }

            sortNatualOrder(airportToAiport);

            int firstMin = airportToAiport.get(0);
            int secondMin = airportToAiport.get(1);

            System.out.println(firstMin + secondMin);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static void sortNatualOrder(List<Integer> intList) {
        for (int i = 0; i < intList.size() - 1; i++) {
            for (int j = intList.size() - 1; j > i; j--) {
                if (intList.get(j -1) > intList.get(j)) {
                    int tmp = intList.get(j - 1);
                    intList.set(j - 1, intList.get(j));
                    intList.set(j, tmp);
                }
            }
        }
    }
}