import java.util.*;


public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    }
} import java.util.*; util.* java public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc sc.close() sc.close sc String[] array = str.split(" "); array str.split(" ") str.split str " " int sum = 0; sum 0 for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        } int i=0; int i=0; i 0 i<array.length i array.length array array.length i++ i++ i {
            int num = Integer.parseInt(array[i]);
            sum += num;
        } {
            int num = Integer.parseInt(array[i]);
            sum += num;
        } int num = Integer.parseInt(array[i]); num Integer.parseInt(array[i]) Integer.parseInt Integer array[i] array i sum += num sum num System.out.println(15-sum) System.out.println System.out System System.out 15-sum 15 sum String[] args args public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    }
} public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    }
} Main
import java.util.*;


public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        sc.close();
        String[] array = str.split(" ");
//        System.out.println(array[0]);
//        System.out.println(Arrays.toString(array));
        int sum = 0;
        for(int i=0; i<array.length; i++) {
            int num = Integer.parseInt(array[i]);
            sum += num;
        }
        System.out.println(15-sum);
    }
}