#include int main(){ int cup[3]={0}; int n, m, p, q; int tmp; int i; scanf("%d%d", &n, &m); cup[n-1]=1; for(i=0; i