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