#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define nln "\n"

void solve(){
	int n,k;
	cin>>n>>k;
	int sum=0;
	for(int x=1;x<=n;x++){
		for(int y=1;y<=k;y++){
			sum+=(100*x)+y;
		}
	}
	cout<<sum<<nln;
}

int main(){
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
	int test_cases;
	// cin>>test_cases;
	test_cases=1;
	while(test_cases--){
		solve();
	}

	return 0;
}
#include<iostream>
using namespace std;

int main() {
	int N,K;
	cin >> N >> K;
	printf("%d", 100 * K * N * (N + 1) / 2 + K * (K + 1) * N / 2);
}