#include using namespace std; int main(void){ // Your code here! int N; cin>>N; if(N%6==1){cout<<2<