#include #include #include #include #define REP(i,k,n) for(int i=k;i> n >> m; a[n-1]++; rep(i,m) { int p,q; cin >> p >> q; swap(a[p-1],a[q-1]); } rep(i,3) { if(a[i] == 1) cout << i+1 << endl; } return 0; }