n = gets.chomp.to_i

def calc(a, b, c, d, e, f)
  100 * a + 101 * b + 102 * c + 103 * d + 104 * e + 105 * f;
end

def check(n)
  time = (n / 100).ceil
  time.times do |a|
    time.times do |b|
      time.times do |c|
        time.times do |d|
          time.times do |e|
            time.times do |f|
              if n == calc(a, b, c, d, e, f)
                return 1
              end
            end
          end
        end
      end
    end
  end
  0
end

print(check(n))