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

int main(){
    int N, K;
    cin >> N >> K;
    cout << 50*N*(N+1)*K + K*(K+1)*N/2 << endl;

    return 0;
}
#include <bits/stdc++.h>

using namespace std;

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