#include<bits/stdc++.h>
using namespace std;

int main(){
  int N, K;
  cin >> N >> K;
  cout << (100 * N + K + 101) * N * K / 2 << endl;
  return 0;
}
#include <bits/stdc++.h>
using namespace std;

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

    int total = 0;
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= k; j++) {
            total += (i * 100 + j);
        }
    }
    cout << total;

    return 0;
}