#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<utility>
#include<bitset>
using namespace std;

int main(int argc, char *argv[])
{
  int n, k;
  cin >> n >> k;
  int sum = 0;
  for(int i = 1; i <= n; i++) {
    for(int j = 1; j <= k; j++) {
      sum += i * 100 + j;
    }
  }
  cout << sum << endl;
  return 0;
}

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <numeric>

using namespace std;
int main()
{
    int N, K;
    cin >> N >> K;
    cout << (1 + N) * N / 2 * K * 100 + (1 + K) * K / 2 * N;
    return 0;
}