#!/usr/bin/env python3
from math import asin, pi

n, e = map(int, input().split())
# TODO: Adding 1e-15 to pi should not be necessary, but else we get floating-point errors...
print(sum(1 if e > 2 * r else int((pi + 1e-15) / asin(e / 2 / r)) for r in map(int, input().split())))
