#include <bits/stdc++.h>
#include <string>
#define rep(i, n) for (long long i = 0; i < n; i++)
#define ll long long
using namespace std;
// cout << fixed << setprecision(8) << result << endl;


int main() {
    int n, k, ans=0;
    cin >> n >> k;
    ans = n*(n+1)*k*100/2;
    ans += n*k*(k+1)/2;
    cout << ans << endl;
}
#include <bits/stdc++.h>

using namespace std;

#define int long long

signed main()
{
	cin.tie(0)->sync_with_stdio(0);
	cin.exceptions(cin.failbit);
	int n, k;
	cin >> n >> k;
	int ans = 0;
	for (int i = 1; i <= n; i++)
	{
		for (int j = 1; j <= k; j++)
		{
			ans += 100 * i + j;
		}
	}
	cout << ans;
}