#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
bool c;
if(n%30==0)
{
cout<<c;
}
else
{
cout<<c+1;
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
bool c;
if(n%30==0)
{
cout<<c;
}
else
{
cout<<c+1;
}
return 0;
}