import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000481_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String[] x = br.readLine().split(" "); int sum = 0; for(int i = 0; i < x.length; i++) sum += Integer.parseInt(x[i]); System.out.println(55 - sum); } }