const Main = input => {
  const S_list = input.split('\n');
  const N = Number(S_list.shift());
  const set = new Set(S_list);
  console.log(set.size);
};
 
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));