class Shopping
  def initialize(x)
    @x = x
    @dp = Array.new(x + 1, 0)
    @dp[0] = 1
  end

  def solve
    (100 .. 105).each do |i|
      (0 .. @x).each do |j|
        if @dp[j] == 1 && i + j <= @x
          @dp[i + j] = 1
        end
      end
    end
    @dp[@x]
  end
end

def run
  x = gets.chomp.to_i
  puts Shopping.new(x).solve
end

run
