#include using namespace std; int main() { int n,k; cin>>n>>k; vector state(n+1); vector> dp(n+1,vector(2)); for (int i=1;i<=2;i++) { int m; cin>>m; for (int j=0;j>a; state[a]=i; } } dp[0][0]=1; for (int i=0;i