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