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

using ll = long long;
using vi = vector<int>;
using vs = vector<string>;
using vb = vector<bool>;
using pii = pair<int, int>;

#define endl " \n"
#define size(x) int((x).size())
#define all(a) a.begin(), a.end()
const int mod = 1e9+7, inf = INT_MAX, ninf = INT_MIN;

void setIO(string name = "") {
	cin.tie(0)->sync_with_stdio(0);
	if (!name.empty()) { freopen((name+".in").c_str(), "r", stdin); freopen((name+".out").c_str(), "w", stdout); }
}

void solve();

int main() {
    setIO();
    solve();
    return 0;
}

void solve() {
    int n, k;
    cin >> n >> k;

    int s = 0;
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= k; j++) {
            int temp = i*100+j;
            s += temp;
        }
    }
    cout << s << endl[1];
}

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

int main(){
  int N,K;cin>>N>>K;
  int ans=0;
  for(int i=1;i<=N;i++){
    ans+=K*i*100;
    ans+=K*(K+1)/2;
  }
  cout<<ans<<endl;
}