"use strict";
    
const main = arg => {
    const colors = arg.split("\n")[0].split(" ");
    const set = new Set(colors);
    
    console.log(set.size);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));