#include using namespace std; int main(){ long long s,k; cin>>s>>k; if(k==1)return -1; cout<