require 'matrix'
include Math

n = gets.to_i
r, t = gets.split.map(&:to_f)

nodes = (1..n).map { gets.split.map(&:to_i) }
edges = nodes.permutation(2).map(&:flatten)

g = (0..edges.size-1).map { {} }
(0..edges.size-1).to_a.permutation(2) do |i, j|
    x1, y1, x2, y2 = edges[i]
    x3, y3, x4, y4 = edges[j]
    next unless x2 == x3 && y2 == y3

    v1 = Vector[x2 - x1, y2 - y1]
    v2 = Vector[x4 - x3, y4 - y3]
    next if v1.inner_product(v2) / (v1.r * v2.r) < cos(PI * t / 180)

    g[i][j] = hypot(x4 - x3, y4 - y3)
end

h = {}
(0..edges.size-1).each do |i|
    e = edges[i]
    next unless e[0..1] == nodes[0]
    d = hypot(e[2] - e[0], e[3] - e[1])
    h[i] = d if d <= r
end

k = 0
until h.empty?
    k += 1
    h2 = Hash.new(Float::INFINITY)
    h.each do |i, d|
        next unless g[i]
        g[i].each do |j, c|
            h2[j] = d + c if d + c < r && d + c < h2[j]
        end
    end
    h = h2
end
p k