#include int main() { int b,i; int a=55; for(i=0;i<9;i++){ scanf("%d",&b); a-=b; } printf("%d\n",a); return 0; }