#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(){
  int n, k;
  int ans = 0;

  cin >> n >> k;
  for (int i = 100; i <= n * 100; i += 100) {
    for (int j = 1; j <= k; j++) {
      ans += i + j;
    }
  }
  cout << ans << endl;
  return 0;
}
#include<bits/stdc++.h>
using namespace std;
using namespace std::chrono;         
#define IOS ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define int long long 
#define rep(i,a,b)    for(int i=a;i<b;i++)
#define repn(i,a,b)   for(int i=a;i>=b;i--)
#define F first
#define S second
#define pii pair<int,int>
#define vi vector<int>
#define vii vector<pii>
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define mod 1000000007  

int fexp(int a, int b,int m){int ans = 1;while(b){if(b&1)ans=(ans*a)%m; b/=2;a=(a*a)%m;}return ans;}
int inverse(int a, int p){return fexp(a, p-2,p);} 

// int fac[2000001];

// int nCrModPFermat(int n, int r,int p) { 
//     // cout<<1<<endl;
//     if (r==0) return 1; 
//     return (((fac[n]*((((inverse(fac[r],p)%p)*inverse(fac[n-r],p))%p))))%p); 
// }

// vi spf(10000001,1);


void solve(){
    int n,k;cin>>n>>k;
    int val=(k)*(k+1)/2;
    int temp=(n)*(n+1)/2;
    cout<<(temp*100*k+val*n);


}
         
signed main(){
        IOS;    

        auto start = high_resolution_clock::now();
        int t=1; 
        // cin>>t;
        // spf[1]=1;
        // for(int i=2; i<=10000001; i++){
        // if(spf[i]==1){
        //     // allprime.pb(i);
        //     for(int j=i; j<=10000001; j+=i)
        //         if(spf[j]==1)spf[j]=i;
        // }
        // }
        // fac[0] = 1; 
        // for (int i=1 ; i<=200001; i++) fac[i] = fac[i-1]*i%mod; 

        rep(i,0,t){
            // cout<<"Case #"<<i+1<<": ";
            solve();
            cout<<"\n";
        }
        auto stop = high_resolution_clock::now();
        auto duration = duration_cast<microseconds>(stop - start);
        cerr<<"Time taken:"<<duration.count()/1000000.0<<"seconds"<<"\n";
    //    return 0;
}