import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main(String[] args) {
        int n;
        Scanner input = new Scanner(System.in);
        n = input.nextInt();
        input.nextLine();
        Election obj = new Election(n);
        obj.getVotes();
    }
}

class Election {
    int n,v1,v2,v3,v4,v5,d;
    public Election(int n) {
        this.n = n;
        v1=v2=v3=v4=v5=d=0;
    }
    public void getVotes() {
        Scanner sc = new Scanner(System.in);
        for(int i = 0 ; i < 1 ; i++) {
            int var = sc.nextInt();
            switch(var) {
               case 1: ++v1; break;
               case 2: ++v2; break;
               case 3: ++v3; break;
               case 4: ++v4; break;
               case 5: ++v5; break;
               default: ++d; break;
            }
        }     
    }
}