#include<iostream>
#include<cstdio>
using namespace std;
int a,b;
int main()
{
cin>>a>>b;
cout<<(10*a+b)/(19)<<endl;
return 0;
}
#include<cstdio>
using namespace std;
int a,b;
int main()
{
cin>>a>>b;
cout<<(10*a+b)/(19)<<endl;
return 0;
}