#include <iostream> using namespace std; int main(){ int N; int a; int tmp; cin>>N>>a; for(int i=1; i<N; i++){ cin>>tmp; } cout<<a-1<<endl; }