#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<bits/stdc++.h>
using namespace std;

int main() {
  int a,b; cin>>a>>b;
  int ans = 0;
  for(int floor = 1; floor<=a; floor++) {
      for(int room = 1; room<=b; room++) {
         ans+=(floor * 100 + room);
      }
  }
  cout<<ans;
}