s = io.read() f = "Yes" for i = 1, #s do if s:sub(i, i) ~= "9" then f = "No" break end end print(f)