function Main(input) {
 input = input.split(' ');
var i = 0
var j = 0
var k = 0
    console.log(input.length);
  for(i = 1; i <= input[0];i++){
    for(j = ++i;j <= input.length-1;j++)
if(input[i] == input[j]){
  input.splice(j, 1);
    console.log(input);
}
    }
    console.log(input.length-1);
  }

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