#include
using namespace std; int main(){ int a,number; cin >> a; number=a/10; if(number<10){ cout <<"1"; }else{ cout <<"0"; } return 0; }