#include<bits/stdc++.h>
using namespace std;
int n,m;
int main(){
	cin>>n>>m;
	cout<<n*(1+m)*m/2+m*(1+n)*n/2*100;
}

#include <iostream>
using namespace std;

typedef long long int ll;

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