#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, i, j, sum, ans;
  while (~scanf("%I64d%I64d", &n, &k)) {
    if (k == 0)
      printf("0\n");
    else {
      ans = k / n + (k % n != 0);
      printf("%I64d\n", ans);
    }
  }
  return 0;
}
