12345678910
#include<iostream> #include<math.h> using namespace std; int main() { int a, b, c; cin >> a >> b; c = a % b; cout << c; }