#include <iostream>
using namespace std;
int main()
{
int a,b;
cout<<"Nhap so a="; cin>>a;
cout<<"Nhap so b="; cin>>b;
cout<<a%b;
return 0;
}
program chia_phan_du;
uses crt;
var a, b: integer;
begin
clrscr;
write('Nhap 2 so nguyen a va b: ');
readln(a, b);
writeln('Ket qua chia lay phan du la: ', a mod b);
end.