#include <iostream>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
const ll inf = (ll)1e9 + 7;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll i, j, k;
    float b;
    ll a, c;
    cin >> a >> b;
    c = 100 * b;
    cout << c << endl;
    cout << (a * c / (ll)100);
    return 0;
}