#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <bitset>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;

int main() {
  ll n,k,sum=0,summ=0;
  cin >> n >> k;
  for(ll i=1;i<=n;i++){
    for(ll j=1;j<=k;j++){
      sum+=i*100;
      summ+=j;
    }
  }
  cout << sum+summ << endl;
}
#include <bits/stdc++.h>
using namespace std;

long long ll_pow(long long a, long long n){
    long long ans = 1;
    for(long long i=0; i< n; i++){
        ans *= a;
    }
    return ans;
}

int main(){
	int a,b;
	cin >>a>>b;
  	if(a+b>=15&&b>=8) cout<<'1'<<endl;
  else if(a+b>=10&&b>=3) cout<<'2'<<endl;
  else if(a+b>=3) cout<<'3'<<endl;
  else cout<<'4'<<endl;
  
	return 0;
}
