#include using namespace std; int main(){ string a;int b;cin>>a>>b; a = a.substr(2,4); int A = stoi(a); cout << (A*b)/10000 << endl; }