#include<iostream> using namespace std; int main() { char str[10101]; while(cin>>str) { if(str[0]=='0') break; int i; int m=0; for(i=0;str[i]!='\0';i++) { m=(m*10+(str[i]-'0'))%17; } if(m==0) cout<<1<<endl; else cout<<0<<endl; } return 0; }
0.0分
3 人评分