#include using namespace std; int main() { string s; cin >> s; int N = s.size(); string ans = "Yes"; for( int i = 0; i < N; i++ ) { if( s[i] != '9' ) ans = "No"; } cout << ans << endl; }