#include<bits/stdc++.h> using namespace std; double a,b; int y; int main(){ cin>>a>>b; y=a/b; cout<<a/b-y; }