#include <iostream>
using namespace std;

int main() {
    unsigned long long first,second;
long double a,b,remainderA,remainderB;
cout << "Enter first number:\n"<< endl;
cin>> a;
cout << "\nEnter second number:\n"<< endl;
cin >> b;

first=(unsigned long long) a;
second=(unsigned long long) b;

remainderA=a-first;
remainderB=b-second;


cout<<remainderA<<endl;
}