#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x-9<=0){ cout<<0<<endl; }else{ cout<<1<<endl; } return 0; }