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

int main(void) {
	int n, k;
	cin >> n >> k;
	int ans = 0;
	for (int i = 1; i <= n; i++) {
		for (int j = 1; j <= k; j++) {
			ans += i * 100 + j;
		}
	}
	cout << ans << endl;
	return 0;
}

#include<bits/stdc++.h>
#define ll long long int
using namespace std;
#define mod 1000000007

int main(){
    ll n,k;
    cin>>n>>k;
    cout<<100*k*(n*(n+1)/2)+n*k*(k+1)/2<<endl;
    
    return 0;
}