#include<bits/stdc++.h> using namespace std; int main(){ int n,m,g; cin>>n>>m>>g; cout<<20-m-n-g; return 0; }