#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define P pair<ll, ll>
#define Graph vector<vector<ll>>
#define fi first
#define se second
constexpr ll mod = 1000000007;
constexpr ll INF = (1ll << 60);
constexpr double pi = 3.14159265358979323846;
template <typename T>
inline bool chmax(T &a, T b) {
    if (a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <typename T>
inline bool chmin(T &a, T b) {
    if (a > b) {
        a = b;
        return 1;
    }
    return 0;
}

int main() {
    ll N, H, W;
    cin >> N >> H >> W;
    cout << (N - H + 1) * (N - W + 1) << "\n";
    return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main(){
  	int a,b;
  cin >> a >> b;
  cout << max((2*max(a,b))-1, a+b) << endl;
  return 0;
}