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