#include<iostream> using namespace std; int main() { int m,n,x,y; cin>>m>>n; x=m/n; y=m%n; cout<<fixed<<x<<" "<<y; return 0; }