#include using namespace std; int main(){ int n; cin>>n; string s = "142857"; if(n==0){ cout<<"0"<