import java.util.ArrayList; import java.util.Scanner; public class No481_OneToTen { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = 0; for (int i = 0; i < 9; i++) { count += scan.nextInt(); } scan.close(); System.out.println(55-count); } }