#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, a, res;
  for (int i = 0; i < n; i++) {
    cin >> a;
    res *= a;
  }
  cout << res - 1 << endl;
  return 0;
}
