#include <iostream>
#include <string>
#include <algorithm>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

int main() {
    int n, k;
    cin >> n >> k;

    int ans = 0;
    rep(i, n)
    rep(j, k)
    ans += (100*(i + 1) + (j + 1));
    cout << ans << endl;
}
#include <iostream>

using namespace std;

void solve() {
    int n, k;
    cin >> n >> k;
    cout << n * k * (n * 100 + k + 101) / 2 << "\n";
}

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    solve();

    return 0;
}
