# include <iostream>
using namespace std;

int N, K;
int main() {
	cin >> N >> K;
	cout << int((1 + N)*N * 0.5 * 100 * K + (1 + K)* K * 0.5 * N) ;

}
#include<bits/stdc++.h>
//#define int long long
using namespace std;
void read() {
#ifndef ONLINE_JUDGE
	// for getting input from input.txt
	freopen("input.txt", "r", stdin);
	// for writing output to output.txt
	freopen("output.txt", "w", stdout);
#endif
}
int32_t main() {
	read();
	ios::sync_with_stdio(0);
	cin.tie(0);
	int T;
	T = 1;
	//cin >> T;
	while (T--)
	{
		int n, m; cin >> n >> m;
		int sum = 0;
		for (int i = 1; i <= n; i++) {
			for (int j = 1; j <= m; j++)
				sum += (i * (100) + j);
		}
		cout << sum;
	}
}
