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