#include <iostream>
using namespace std;
int main() {
int v,t;
cin >> v >> t;
cout<< (abs(v) * t - 54 * t) % 100;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKaW50IHYsdDsKY2luID4+IHYgPj4gdDsKY291dDw8IChhYnModikgKiB0IC0gNTQgKiB0KSAlIDEwMDsKfQogIA==