#include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define sz(x) (int)(x).size()
#define all(x) x.begin(), x.end()
int main() {
IOS;
int n;cin>>n;
string s;cin>>s;
cout<<(n+1)/2;
}