#include <iostream>
#include <fstream>
#include "algotester.h"
using namespace std;
int main(int argc, char* argv[])
{
auto [in, out, ans] = initScorer(argc, argv);
int a = out.readInt();
int b = ans.readInt();
if (a <= b)
cout << 5;
else if (a <= b * 2)
cout << 4;
else if (a <= b * 3)
cout << 3;
else if (a <= b * 4)
cout << 2;
else if (a <= b * 7)
cout << 1;
else
cout << 0;
return 0;
}