#include <iostream>
#include <bits/stdc++.h>
#define ll long long int
#define ull unsigned long long
#define max_value 0x3f3f3f
#define all(v) v.begin(),v.end()
#define FIO ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define file freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
using namespace std;
typedef pair<ll,ll> pii;

const int  inf=1e9+7;
const int mod=998244353;
const int maxn=2e3+1;
ll sqr(ll x){
return x*x;
}
/*ll invfac(ll a,ll b){
 return (f[a]*modexpo((f[b]*f[a-b])%inf,inf-2))%inf;


}*/
ll modexpo(ll a,ll b){
    a%=inf;
ll res=1;
 while(b>0){
    if(b&1)
        res=res*a%inf;
    a=a*a%inf;
    b>>=1;
 }
 return res;

}




































void solve(){
ll sum=0;
ll n,k;
cin>>n>>k;
ll z=100;
for(int j=1;j<=n;j++){
for(ll i=1;i<=k;i++){
    sum+=z+i;
}
z+=100;}
cout<<sum;

}





















int main(){

  /*file;*/

 int t;
t=1;
 while(t--){
 solve();
}

}








#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,x,n) for(int i=x;i<=n;i++)
#define all(v) v.begin(),v.end()
#define foreach(c,itr) for(__typeof(c.begin()) itr=c.begin();itr!=c.end();itr++)
#define p_b push_back
#define pii pair<int,int>
#define fr first
#define sc second
#define m_p make_pair
#define zero(a) memset(a,0,sizeof(a))
#define setp setprecision
typedef long long ll;
typedef long double ld;
const ll INF=0x3f3f3f3f;
const ll mod=1000000007;
const ld eps=1e-14;
int i,j;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	
	int n,k;
	cin>>n>>k;
	int ans=n*(n+1)/2*100*k+k*(k+1)/2*n;
	cout<<ans<<endl;
	return 0;
}
