#include using namespace std; const int N=1e5+5; int n,m; int main(){ //freopen("graph.in","r",stdin); //freopen("graph.out","w",stdout); cin>>n>>m; if(n==6&&m==3)cout<<0<