#include <bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define int int64_t
#define ff first
#define ss second
#define vi vector<int>
#define pii pair<int,int>
#define pb push_back
#define IM LLONG_MAX
#define endl "\n"
#define all(v) v.begin(),v.end()
#define REP(i,a,n) for(int i=a;i<n;i++)
#define deb(x) cout<<"["#x<<":"<<x<<"]"<<"  "<<endl;
#define deb2(x,y) cout<<"["#x<<":"<<x<<" "#y<<":"<<y<<"]"<<endl;
#define out(a) for(auto x:a)cout<<x<<" "; cout<<endl;
#define outyes cout<<"Yes"<<endl;
#define outno cout<<"No"<<endl;
#define mod 1000000007
using namespace std; 

void M416() 
{
   int n,k;
   cin>>n>>k;
   int c=0;
   for(int i=1;i<=n;i++){
    for(int j=1;j<=k;j++){
        int x=i*100;
       c+=x+j;
    }
   }
   cout<<c<<endl;
  







    
}
 
int32_t main()
{
    fastio;
    cout<<fixed;
    cout.precision(15);
    int __TESTCASES=1;
    // cin>>__TESTCASES; 
    while(__TESTCASES--){ 
        M416();
}
}

#include <vector>
#include <string>
#include <iostream>
#include <sstream> 

int main() {
  std::string s, foo, buffer;
  std::getline(std::cin, s);

  std::vector<int> hoge;
  std::stringstream ss{s};
  while( std::getline(ss, buffer, ' ') ) {
    hoge.push_back(std::stoi(buffer));
  }

  int n = 0;
  int k = 0;
  for(int i = 0; i <= hoge[0]; i++) {
    n += i*hoge[1];
  }
  for(int i = 0; i <= hoge[1]; i++) {
    k += i;
  }

  std::cout << (n*100) + k*hoge[0] << std::endl;

  return 0;
}
