#include<bits/stdc++.h> using namespace std; int main(){ doublle a,b,r; int c; cin>>a>>b; c=a/b; r=a-b*c; prinf("%.2lf",r); return 0; }