#include<iostream>
using namespace std;
int main()
{
    int n,k;
    cin >> n >> k;
    
    cout << (n+1)*n/2 * k * 100 + n * (k+1)*k/2 << endl;  
    
    return 0;
}

#include <bits/stdc++.h>
using namespace std;
 
int main(){
    int n,k;
    cin>>n>>k;
    int sum = 0;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=k;j++){
            sum += i*100+j;
        }
    }
    cout<<sum;
    return 0;
}