#include using namespace std; int main(){ double v; int t; cin >> v >> t; cout << v * t - int(v * t) << endl; while(t % 10 == 0){ t /= 10; v *= 10; } if(v * t - int(v * t)) cout << int(v * t) + 1 << endl; else cout << int(v * t) << endl; }