#include #define MOD 1000000007LL using namespace std; typedef long long ll; typedef pair P; int n; int m; int dp[31]; int win[101]; int main(void){ for(int i=0;i<=30;i++){ dp[i]=i%3; } scanf("%d",&n); memset(win,false,sizeof(win)); for(int i=0;i