#include <iostream> using namespace std; int main(){ double a,b,r; int k; cin>>a>>b; k = a/b; r = a-k*b; printf("%.2lf",r); }