#include <iostream>
#include <bits/stdc++.h>
#include<string>
using namespace std;
#define boost ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL);

long long n,m;
string s,st;
long long a[200005]={0};
void get_values()
{
    std::cin >> n >> m;
    n=n+m;
    //for(int i=0;i<n;i++)
      //  std::cin >> a[i];
    //std::cin >> s;
    //n=s.length();
}

void solve()
{
    long long i,j,t,ans=0,x,y;
    if(n>=15 && m>=8)
        std::cout << 1 << std::endl;
    else if(n>=10 && m>=3)
        std::cout << 2 << std::endl;
    else if(n>=3)
        std::cout << 3 << std::endl;
    else
        std::cout << 4 << std::endl;
}

int main() {
    boost;
    get_values();
    solve();
    return 0;
}
#include<bits/stdc++.h>
#define ll long long
#define x first
#define y second
#define pi pair
#define K 1000000007
using namespace std;

ll a[2000000];
int main() {
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	ll test_case=1;//cin>>test_case;
	while(test_case--)
	{
       ll a,b;cin>>a>>b;
       cout<<fixed;
       cout<<setprecision(10)<<(100*(a-b))/(double)a<<endl;
	}
	return 0;
}
