#include <iostream> using namespace std; int main() { int m,n,a,b; cin>>m>>n; a=int(m/n); b=int(m%n); cout<<a<<" "<<b; }