#include using namespace std; int main(void){ int B, a=55; while(a>10){ cin >> B; a -= B; } cout << a << endl; return 0; }