#include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define ll long long
int main()
{
ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll multi = a * b * c * d;
cout << multi % 100;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNpbmNsdWRlIDxjbWF0aD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBsbCBsb25nIGxvbmcKIAogCmludCBtYWluKCkKewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSksIGNpbi50aWUoMCksIGNvdXQudGllKDApOwogCiAKICAgIGxsIGEsIGIsIGMsIGQ7CiAgICBjaW4gPj4gYSA+PiBiID4+IGMgPj4gZDsKICAgIGxsIG11bHRpID0gYSAqIGIgKiBjICogZDsKICAgIGNvdXQgPDwgbXVsdGkgJSAxMDA7Cn0=