import java.util.*; public class OnetoTen { public static void main(String[] args) { Scanner s = new Scanner(System.in); int total = 55; ArrayList list = new ArrayList<>(); int i = 0; while(i < 9){ list.add(s.nextInt()); i++; } s.close(); for(int k : list){ total = total - k; } System.out.println(total); } }