#include using namespace std; int main() { int H, A; cin >> H >> A; int k = 0; int j = 1; int a; for (int i = 0; i < 1;) { k += j; j *= 2; a = H / A; H = a; if (a == 0) { i++; } } cout << k << endl; }