#include int main(void){ int i; int N,M; int ans[4]; for(i=0;i<4;i++){ans[i] = 0;} scanf("%d", &N); ans[N] = 1; scanf("%d", &M); for(i=0;i