#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long m, n;
cin >> m >> n;
cout << m * (m + 1) * n * (n + 1) / 4;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7CiAgICBjaW4udGllKE5VTEwpOwogICAgCiAgICBsb25nIGxvbmcgbSwgbjsKICAgIGNpbiA+PiBtID4+IG47CiAgICBjb3V0IDw8IG0gKiAobSArIDEpICogIG4gKiAobiArIDEpIC8gNDsKfQ==