#!/usr/bin/env python3 from math import asin, pi n, e = map(int, input().split()) # Adding 10e-6 to radius to see if we adhere to the condition in the problem statement print(sum(1 if e > 2 * r else int(pi / asin(e / 2 / (r + 1e-6))) for r in map(int, input().split())))