#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
a=500;
b=b%3==2;
b=b%5==3 ;
b=b%7==2;
if(b<=a) {
cout<<b;
}
}
/**************************************************************
Problem: 1021
User: jiangyuanfeng
Language: C
Result: Compile Error
****************************************************************/