#include using namespace std; int main() { double v; int t; cin >> v >> t; int a = t / 10000; int b = (t % 10000) / 1000; int c = (t % 1000) / 100; int d = (t % 100) / 10; int e = t % 10; double res = 0; res += e * v; res += v * 10 * d; res += v * 100 * c; res += v * 1000 * b; res += v * 10000 * a; cout << res / 1 << endl; }