import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] data = new int[3]; data new int[3] 3 for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
            data[i] = Integer.parseInt(sc.next());
        } {
            data[i] = Integer.parseInt(sc.next());
        } data[i] = Integer.parseInt(sc.next()) data[i] data i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = 1000; ans 1000 for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        } {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        } for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            } {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            } if (i == j) {
                    continue;
                } i == j i j {
                    continue;
                } continue; ans = Math.min(ans, data[i] + data[j]) ans Math.min(ans, data[i] + data[j]) Math.min Math ans data[i] + data[j] data[i] data i data[j] data j System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] data = new int[3];
        for (int i = 0; i < data.length; i++) {
            data[i] = Integer.parseInt(sc.next());
        }

        int ans = 1000;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                }
                ans = Math.min(ans, data[i] + data[j]);
            }
        }
        System.out.print(ans);
    }

}