def main():

    a, b, c = list(map(int, input().split()))

    print((len(set([a, b, c]))))





if __name__ == '__main__':

    main()

from collections import defaultdict





def main():

    print((len(set(map(int, input().split())))))





if __name__ == '__main__':

    main()

def main():
    a, b, c = list(map(int, input().split()))
    print((len(set([a, b, c]))))


if __name__ == "__main__":
    main()

from collections import defaultdict


def main():
    print((len(set(map(int, input().split())))))


if __name__ == "__main__":
    main()

+from collections import defaultdict + + -    a, b, c = list(map(int, input().split())) -    print((len(set([a, b, c])))) +    print((len(set(map(int, input().split())))))