function Main(input) {
	input = input.split('\n');
	var n = Number(input[0]);
	var k = n/100;
  if(100*k<=n || n<=105*k){
  console.log('1');
  }else{
  console.log('0');
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));