n,k=map(int,input().split()) print(-1 if n