#include <bits/stdc++.h>

using namespace std;
typedef long long int ll;

int main()
{
    ios::sync_with_stdio(false);
    int m = 20, n = 20;
    int value = m * m + 0.5 * n * n + 2 * m * n - m + 0.5 * n + 1;
    cout << value << endl;
    system("pause");
    return 0;
}
