#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int l, m, n; cin >> l >> m >> n; int t1 = n % 25; int c25 = n / 25; int t25 = (m+c25) % 4; int c100 = (m + c25) / 4; int t100 = (l+c100) % 10; cout << t1+t25+t100 << "\n"; return 0; }