https://www.acmicpc.net/problem/10797
using System;
class Program
{
static void Main() {
string s=Console.ReadLine();
int n=int.Parse(s);
int count=0;
string[] s1=Console.ReadLine().Split(' ');
for(int i=0;i<5;i++){
int a=int.Parse(s1[i]);
if(n==a) count++;
}
Console.Write(count);
}
}