'use strict';
function main(input) {
    var args = input.split('\n').map((n) => parseInt(n, 10)).shift()
  	console.log(Array.from(new set(args)).sort((a,b)=>a-b).length)
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));