#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; b/=10; a+=b; cout<<int(a/1.9); return 0; }