want = STDIN.gets.chomp.to_i

shouhin = [100, 101, 102, 103, 104, 105]

attempt = want / 100

def check(attempt, want)
  max = attempt * 105

  if max < want
   return 0
  end

  min = attempt * 100
  if min == want
    return 1
  end
  return 1
end

puts check(attempt, want)
