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