#include typedef long long ll; #define INF 1000000000 #define MOD 1000000007 using namespace std; int main(void){ int n,m,ans; cin>>n>>m; if(n<=m){ ans=1; }else{ if(n%m==0){ ans=n/m; }else{ ans=-1; } } cout<