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