#include using namespace std; typedef long long ll; typedef string str; int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll n; cin >> n; ll count1 = 0; for (ll i = 0; i < n; i++) { ll x; cin >> x; if (x == 1) count1++; } cout << count1 + 1; return 0; }