'use strict'
function main(inp) {
  inp = inp.trim().split('\n');
  let N = inp.shift();
  let ans = new Set(inp);
  console.log(ans.size);

}

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