#include using namespace std; int main(){ int a[9],s=0; for(int i=0;i<9;i++){ cin>>a[i]; s+=a[i]; } cout<<55-s<