X = gets.to_i

def check(k)
	return false if k < 0
	return true if k%100==0 || k%101==0 || k%102==0 || k%103==0 || k%104==0 || k%105==0
	return check(k-100) || check(k-101) || check(k-102) || check(k-103) || check(k-104) || check(k-105)
end
p check(X) ? 1 : 0