import java.io.IOException; import java.util.Scanner; public class Main{ public static void main (String[] args) throws IOException{ Scanner sc = new Scanner(System.in); long sum = 0; for(int i=1;i<10;i++){ long num = sc.nextInt(); sum += num; } System.out.println(55-sum); } }