n,c=map(int,input().split()) assert 2<=n<=10**3 assert 4<=c<=10**9