#include<iostream> using namespace std; int main(){ int n,k; cin>>n>>k; n=n/k; k=k/n; cout<<n,k<1000; return 0; }