#include <iostream>using namespace std;
int main(){ int n, distinct = 0, vect[100]; cin>>n; for (int i=1; i<=n; i++) { cin>>vect[i]; } int i= 1; while (i<=n) { int val = vect[i]; distinct++; while (i<=n && val==vect[i]) i++; } cout<<distinct; return 0;}