Pascal :
var n,m:integer; begin read(n,m); write(n mod m,' ',n div m); end.
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 算道OJ universal account