// editor3
#include<stdio.h>
#include<stdlib.h>
typedef struct Node{
    int data;
    struct Node *next;
}Node;
Node*head=NULL,*tail;
int count=0;
int create(int num){
    Node newNode=(Node)malloc(1*sizeof(Node))
    newode->data=next;
    newnode->next=NULL;
    count++;
    if (head==NULL){
        head=newnode;
        tail=newnode;
    }
else{
    tail->next=newnode;
    tail=newnode;
}
return count;
}
int main(){
    int n,num;
    scanf("%d", &n);
    
    if (n<=0){ 
    printf("Invalid Input");
    return 0;
}
 for(int i=0;i<n;i++){
 scanf("%d",& num);
create(num);
 }
 printf("%d",count);
 return 0;
 }