#include #include #include #include #include #include #include #include #include #include #include using namespace std; #define N (1000000000+7) //#define N (998244353) #define INF 1e16 typedef long long ll; typedef pair P; typedef vector vec; typedef vector mat; const int inf = 1e9; ll dp[1000010][4]; int main(void){ ll n; cin>>n; dp[1][1]=1; dp[2][2]=1; dp[3][1]=1; dp[3][2]=1; dp[3][3]=1; if(n<=3){ cout<<1<