#include <iostream>
#include <vector>

using namespace std;

int main() {
    int N, K;
    cin >> N >> K;

    int sum = 0;

    // digit 1
    int sum1 = 0;
    for (int i = 0; i < K; i++) {
        sum1 += i + 1;
    }

    // digit 3
    int sum3 = 0;
    for (int i = 0; i < N; i++) {
        sum3 += K * (100 + i * 100);
    }

    sum = sum1 * N + sum3;

    cout << sum << endl;


    return 0;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,m;
	cin>>n>>m;
	cout<<n/m<<endl;
	return 0;
}