import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  } main {
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) Integer result=15; result 15 for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    } int i=0; int i=0; i 0 i<5 i 5 i++ i++ i {
      Integer num = scan.nextInt();
      result-=num;
    } {
      Integer num = scan.nextInt();
      result-=num;
    } Integer num = scan.nextInt(); num scan.nextInt() scan.nextInt scan result-=num result num System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
      
  	Integer result=15;
  	for(int i=0;i<5;i++){
      Integer num = scan.nextInt();
      result-=num;
    }
    System.out.println(result);
  }
}
