#!/usr/bin/env python3 # -*- coding: utf-8-*- if __name__ == '__main__': print(55-sum(list(map(int, input().split(" ")))))