"use strict";

const main = arg => {
    const input = arg.trim().split("\n");
    const x = Number(input[0])
    let s = new Set()
    for(let i = 1; i<input.length;i++){
        s.add(input[i])
    }

    console.log(s.size)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  