#include using namespace std; int P; long dp[25][2][3]; main() { cin>>P; dp[0][0][0]=1; for(int i=0;i