#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b,c,d,rem,ans1,ans2;
cin >> a >> b >> c >> d;
long long v1 = a*b, v2 = c*d;
rem = ((v1%100) * (v2%100)) % 100;
ans1 = rem % 10;
rem /= 10;
ans2 = rem % 10;
cout << ans2 << ans1;
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7Cglsb25nIGxvbmcgYSxiLGMsZCxyZW0sYW5zMSxhbnMyOwoJY2luID4+IGEgPj4gYiA+PiBjID4+IGQ7Cglsb25nIGxvbmcgdjEgPSBhKmIsIHYyID0gYypkOwoJcmVtID0gKCh2MSUxMDApICogKHYyJTEwMCkpICUgMTAwOwoJYW5zMSA9IHJlbSAlIDEwOwoJcmVtIC89IDEwOwoJYW5zMiA9IHJlbSAlIDEwOwoJY291dCA8PCBhbnMyIDw8IGFuczE7CglyZXR1cm4gMDsKfQ==