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 = {}
edges.permutation(2).each do |e1, e2|
    x1, y1, x2, y2 = e1
    x3, y3, x4, y4 = e2
    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[e1] ||= {}
    g[e1][e2] = hypot(x4 - x3, y4 - y3)
end

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

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