#include <iostream>
using namespace std;
int main() {
long long a , b ,c ,d;
cin >> a >> b >> c >> d;
//calc product
long long product = a * b * c * d;
//get the last two digits
int lastTwoDigits = product % 100;
//print result
cout << lastTwoDigits << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgbG9uZyBsb25nIGEgLCBiICxjICxkOwogICAgY2luID4+IGEgPj4gYiA+PiBjID4+IGQ7CgogICAgLy9jYWxjIHByb2R1Y3QKICAgIGxvbmcgbG9uZyBwcm9kdWN0ID0gYSAqIGIgKiBjICogZDsKCiAgICAvL2dldCB0aGUgbGFzdCB0d28gZGlnaXRzCiAgICBpbnQgbGFzdFR3b0RpZ2l0cyA9IHByb2R1Y3QgJSAxMDA7CgogICAgLy9wcmludCByZXN1bHQKICAgIGNvdXQgPDwgbGFzdFR3b0RpZ2l0cyA8PCBlbmRsOwogICAgCiAgICByZXR1cm4gMDsKCn0=