#include <iostream>

using namespace std;

int main() {
  int n;	cin >> n;
  int *a = new int[n];
  int ans = 0;
  for (i = 0; i < n; i++) {
  	ans += a[i]-1;
  	}
  cout << ans << endl;
  return 0;
}