#include <bits/stdc++.h>
using namespace std;

int main() 
{
    int arr[11] = {8 , 3 , 5 , 2 , 3 , 1 , 6 , 5 , 7 , 4 , 3};
    int n=11;

    int frequency[100] = {0}; // here we use the frequency array of size 100

    for(int i=0; i<n; i++)
    {
        frequency[arr[i]] = frequency[arr[i]] + 1;
    }

    // 2
    int q;
    cout<<"Enter No of Queries "<<endl;
    cin>>q;

    for(int i=0; i<q; i++)
    {
        // 5  6
        int x;
        cout<<"Enter the No. to find frequency:"<<endl;
        cin>>x;

        cout<<"frequency of: "<<x<<"="<<frequency[x]<<endl; // 5 = 2 , 6 = 1
    }

    return 0;
}