function main(input) {
  var x = input[0]-0;
  var oni = [100,101,102,103,104,105];
  var dp = {};
  dp[0] = 0;
  oni.forEach(v=>dp[v]=1);
  for(var i=100;i<=x;i++){
    oni.forEach(v=>{
      if(i>v && dp[i-v]){
        dp[i] = (dp[i]||0)+1;
      }
    });
  }
  console.log(dp[x]?1:0);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').split("\n"))
