#include <bits/stdc++.h>
#define rep(i,l,r) for(int i=l,i##_end=r;i<i##_end;++i)
#define all(v) v.begin(), v.end()
#define sz(x) ((int)(x).size())
#define uniera(v) v.erase(unique(all(v)), v.end())
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(){
  int n, k;
  cin >> n >> k;
  int sum = 0;
  rep(i, 1, n + 1){
    rep(j, 1, k + 1){
      sum += i * 100 + j;
    }
  }
  cout << sum << endl;
  return 0;
}
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
signed main()
{
    fast;
    int n,k;
    cin>>n>>k;
    int sum=(k*(k+1))/2;
    sum*=n;
    int ans=(n*(n+1))/2;
    ans*=100;
    ans*=k;
    ans+=sum;
    cout<<ans<<"\n";
    return 0;
}