#include <bits/stdc++.h>
using namespace std;

int main() {
  int n, k;
  cin >> n >> k;

  int total = 0;

  for(int i = 1; i <= n; i++){
    for(int j = 1; j <= k; j++){
      int room = i * 100 + j;
      total += room;
    }
  }

  cout << total << endl;

  return 0;
}
#include <iostream>
#include <string.h>
#include <limits.h>
#include <time.h>
#include <algorithm>
#include <vector>
#define rep(i, a,b) for (int i = a; (int)i < b; i++)
#define repe(i,a,b) for(int i=a;(int)i<=b;i++)
#define per(i,a,b) for(int i=a;(int)i>b;i--)
#define fi(i,a) for(int i=0;(int)i<a;i++)
#define FS(i,a) for(int i=0;a[i];++i)
#define deb(x) cout<<'\n'<<#x<<" :- "<<x<<'\n'
typedef long long ll;
#define sz(a) (int)a.length()
#define nl '\n'
#define ga ' '
/*array stuff*/
#define SET(a)                memset( a, -1,    sizeof a )
#define CLR(a)                memset( a,  0,    sizeof a )
#define MEM(a,val)            memset( a,  val,  sizeof(a) )
/*array stuff ends*/
#define F first
#define S second
#define pb push_back
#define RUN_LOCAL(testfilename,testfilename1) {freopen(testfilename, "r",stdin);freopen(testfilename1,"w",stdout);}
constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n - 1); }
using namespace std;

bool com(int a, int b) {
	return a > b;
}

vector<bool> sieve(int N) {
	vector<bool> isPrime(N + 1);
	for (int i = 0; i <= N; ++i) {
		isPrime[i] = true;
	}
	isPrime[0] = false;
	isPrime[1] = false;
	for (int i = 2; i * i <= N; ++i) {
		if (isPrime[i] == true) {                   //Mark all the multiples of i as composite numbers
			for (int j = i * i; j <= N ; j += i)
				isPrime[j] = false;
		}
	}
	return isPrime;
}
int finde(vector<int> v, int n) {
	fi(i, v.size()) {
		if (v[i] == n)return 1;
	}
	return 0;
}

bool isPalinrome(string s) {
	for (int i = 0; i < (int)s.size() / 2; i++) {
		if (s[i] != s[(int)s.size() - 1 - i]) return false;
	}
	return true;
}

int gcd(int n1, int n2) {
	if (n2 != 0)
		return gcd(n2, n1 % n2);
	else
		return n1;
}

string ToStr( char c ) {
	return string( 1, c );
}
int main() {
#ifndef ONLINE_JUDGE
	RUN_LOCAL("input.txt", "output.txt");
	//freopen("error.txt", "w", stderr);
#endif
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int n, k;
	cin >> n >> k;
	int ct = 0;
	for (int i = 1; i <= n; i++) {
		for (int j = 1; j <= k; j++) {
			ct += (i * 100) + j;
		}
	}
	cout << ct;
#ifndef ONLINE_JUDGE
	cout << "\n[Time Elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " s]";
	cout << "\n |ヽ__／|   (`ヽ\n |_ _  |.--.) )\n ( T   )     ヽ\n(((^_(((/(((_／\n";
#endif
//ctrl+u cancel build
}