#include int main(void){ int b, ans = 55; while(ans > 10){ scanf("%d ", &b); ans -= b; } printf("%d\n", ans); return 0; }