import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);

void main()
{
    auto N = lread();
    auto D = new long[](N);
    foreach (i; 0 .. N)
    {
        auto d = lread();
        D[i] = d;
    }
    // writeln(D);
    auto D_so = D.sort();
    // writeln(D_so);
    long cnt;
    foreach (i; 0 .. N - 1)
    {
        if (D[i] == D[i + 1])
        {
            continue;
        }
        cnt += 1;
    }
    writeln(cnt + 1);
}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}
