#include <iostream>
using namespace std;
void get_output(int n) {
if(n >= 9)
cout << 1;
else
cout << 0;
return ;
}
int main() {
int n;
cin >> n;
get_output(n);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBnZXRfb3V0cHV0KGludCBuKSB7CglpZihuID49IDkpCgkJY291dCA8PCAxOwoJZWxzZQoJCWNvdXQgPDwgMDsKCXJldHVybiA7Cn0KCmludCBtYWluKCkgewoJaW50IG47CgljaW4gPj4gbjsKCWdldF9vdXRwdXQobik7CgoJcmV0dXJuIDA7Cn0=