'use strict'

function Main(input) {
    let S = input.trim().split('\n');
    S.shift();

    const mySet = new Set(S);

    console.log(mySet.size);

}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
