Problem:


Score : 100 points

Problem Statement

AtCoDeer the deer recently bought three paint cans.
The color of the one he bought two days ago is a, the color of the one he bought yesterday is b, and the color of the one he bought today is c.
Here, the color of each paint can is represented by an integer between 1 and 100, inclusive.

Since he is forgetful, he might have bought more than one paint can in the same color.
Count the number of different kinds of colors of these paint cans and tell him.

Constraints

1≦a,b,c≦100

Input

The input is given from Standard Input in the following format:

a b c

Output

Print the number of different kinds of colors of the paint cans.

Sample Input 1

3 1 4

Sample Output 1

3

Three different colors: 1, 3, and 4.

Sample Input 2

3 3 33

Sample Output 2

2

Two different colors: 3 and 33.



Sample input:
3 1 4


Sample output:
3

Submission status: Accepted

Solution code:
paint = raw_input().split()
ans = 3
if paint[0] == paint[1]:
	if paint[1] == paint[2]: ans = 1
	else: ans = 2
elif paint[0] == paint[2] or paint[1] == paint[2]: ans = 2

print ans

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
count = 1
if a != b:
    count += 1
if b != c and c != a:
    count += 1
print(count)

Submission status: Accepted

Solution code:
penki = list(map(int, input().split()))
kind = []
for i in penki:
	if not i in kind:
		kind.append(i)
print(len(kind))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
ans = list()
ans.append(a)
ans.append(b)
ans.append(c)
print(len(set(ans)))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import collections

a, b, c = map(int, input().split())
c = collections.Counter([a, b, c])
print(len(c))

Submission status: Accepted

Solution code:
print(len(set(map(int, input().split(' ')))))

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
colors=[A,B,C]
if colors.count(A)==1 and colors.count(B)==1:
    print (3)
elif colors.count (A)==3:
    print (1)
else:
    print (2)

Submission status: Accepted

Solution code:
in1 = set(map(int,input().split()))
print(len(in1))

Submission status: Accepted

Solution code:
N = set(map(int,input().split()))

print(len(N))

Submission status: Accepted

Solution code:
from collections import Counter
A,B,C = map(int,input().split())
print(len(Counter([A,B,C]).most_common()))

Submission status: Accepted

Solution code:
a = list(input().split())
l = set(a)
print(len(l))

Submission status: Accepted

Solution code:
a = list(input().split())
b = set(a)
print(len(b))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    paint_cans = list(map(int, input().split()))
    print(len(set(paint_cans)))

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
s = set(a)
print(len(s))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == b == c:
	print(1)
elif a == b or b == c or c ==a:
	print(2)
else:
	print(3)

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])
c = int(arr_data[0][2])

if a==b and a==c:
    
    print(1)
    
elif a==b or a==c or b==c:
    
    print(2)
    
else:

    print(3)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c :
    print(1)
elif a==b and not b==c:
    print(2)
elif b==c and not a==c :
    print(2)
elif c==a and not a==b :
    print(2)
else :
    print(3)

Submission status: Accepted

Solution code:
[a, b, c] = [int(x) for x in input().split()]
if a == b and b == c: print(1)
elif a == b or a == c or b == c: print(2)
else: print(3)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and b==c:
  print(1)
elif a!=b and b!=c and a!=c:
  print(3)
else:
  print(2)

Submission status: Accepted

Solution code:
from collections import Counter

colours = Counter(list(map(int, input().split())))
print(len(list(colours)))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
S=set()
S.add(a)
S.add(b)
S.add(c)
print(len(S))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
color = [a]
if b not in color:
  color.append(b)
if c not in color:
  color.append(c)
print(len(color))

Submission status: Accepted

Solution code:
print(len(set([int(n) for n in input().split()])))

Submission status: Accepted

Solution code:
arr = map(int, input().split())
res = set(arr)
print(len(res))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b and b == c:
	print('1')
elif a == b or b == c or a == c:
	print('2')
else:
	print('3')

Submission status: Accepted

Solution code:
import collections
dic = collections.defaultdict(lambda: 0)

for i in map(int, input().split()):
    dic[i] += 1

print(len(list(dic.keys())))

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
list=[a,b,c]
list.sort()
if list[0]==list[1]==list[2]:
    print(1)
elif list[1]==list[0] or list[1]==list[2]:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if(a==b and b==c):
  print(1)
elif(a==b or b==c or a==c):
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
v=set([a,b,c])
print(len(v))

Submission status: Accepted

Solution code:
l = set([int(i) for i in input().split()])
print(len(l))

Submission status: Accepted

Solution code:
xs = set([int(i) for i in input().split()])
print(len(xs))

Submission status: Accepted

Solution code:
def main():
    abc = map(int, input().split())

    ans = len(set(abc))
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
print len(set(map(int, raw_input().split())))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
d = {}
d[a], d[b], d[c] = 1, 1, 1
print(len(d))

Submission status: Accepted

Solution code:
I = [int(i) for i in input().split()]
s = set(I)
print(len(s))

Submission status: Accepted

Solution code:
S=map(int, input().split())
print(len(set(S)))

Submission status: Accepted

Solution code:
x,y,z = map(int, input().split())

if x == y == z:
    print ("1")
elif x == y or y == z or x == z:
    print ("2")
elif x != y != x:
    print ("3")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



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

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b and b == c:
    print(1)
elif a != b and b != c and a != c:
    print(3)
else:
    print(2)

Submission status: Accepted

Solution code:
a,b,c=[int(x) for x in input().split()]
print(len(set([a,b,c])))

Submission status: Accepted

Solution code:
val = input().split()
print(len(set(val)))

Submission status: Accepted

Solution code:
l = sorted(map(int, input().split()))
if l[0] == l[1] == l[2]:
    print('1')
elif l[0] == l[1] or l[1] == l[2]:
    print('2')
else:
    print('3')

Submission status: Accepted

Solution code:
import sys
a, b, c = map(int, sys.stdin.readline().split())
nums = []
nums.append(a)
nums.append(b)
nums.append(c)

counted = []
cnt = 0
for item in nums:
    if item in counted:
        continue
    else:
        cnt += 1
        counted.append(item)
print(cnt)

Submission status: Accepted

Solution code:
nums = list(map(int, input().split()))
ans = set(nums)
print(len(ans))

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if a != b == c:
	print(2)

if a == b != c:
	print(2)
	
if a == c != b:
	print(2)

if a == b == c:
	print(1)
	
if a != b != c and a != c:
	print(3)

Submission status: Accepted

Solution code:
n = input().split()
m = set(n)
print(len(m))

Submission status: Accepted

Solution code:
x=set(map(int,raw_input().split()))
print len(x)

Submission status: Accepted

Solution code:
a, b, c = input().split()
if a == b == c:
    print(1)
elif a == b or b == c or c == a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
def main():
    A = list(map(int, input().split()))
    print(len(list(set(A))))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
if a==b==c:
 print(1)
elif (a==b and a!=c):
 print(2)
elif (a==c and a!=b):
 print(2)
elif (b==c and a!=b):
 print(2)
else:
 print(3)

Submission status: Accepted

Solution code:
paint = set(map(int, input().split()))
print(len(paint))

Submission status: Accepted

Solution code:
j = input().split()
a = int(j[2])
b = int(j[1])
c = int(j[0])
if a == b and b== c:
 print("1")
elif a == b:
 print("2")
elif b == c:
 print("2")
elif a==c:
 print("2")
else:
 print("3")

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
print(len(list(set(x))))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
    def __init__(self, function):
        self.function = function

    def __ror__(self, other):
        self.left = other
        return self

    def __or__(self, other):
        return self.function(self.left, other)

    def __call__(self, value1, value2):
        return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
    def __rlshift__(self, other):
        self.value = other
        return self

    def __rshift__(self, other):
        return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)



a = map(int,input().split())<<ap>>(sorted)
if a[0] == a[1] and a[1] == a[2]:
    print(1);
elif a[0] != a[1] and a[1] != a[2]:
    print(3);
else:
    print(2);

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
lst1 = [a,b,c]
lst2 = sorted(lst1)
if lst2[0] == lst2[1] == lst2[2]:
    print("1")
elif lst2[0] == lst2[1] or lst2[1] == lst2[2] or lst2[2] == lst2[0]:
    print("2")
else:
    print("3")

Submission status: Accepted

Solution code:
# coding: utf-8

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

if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a, b, c = input().split()
tap = {a,b,c}
print (len(tap))

Submission status: Accepted

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

cnt = 0
if a == b == c:
    print(1)
elif a == b or b == c or c == a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
ans = list(map(int, input().split()))
ANS = set(ans)
print(len(ANS))

Submission status: Accepted

Solution code:
from sys import stdin, stdout
def readLine_int_set(): return set(list(map(int, stdin.readline().split())))
def main():
    print(len(readLine_int_set()))
    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())

if a == b and b == c:
    print 1
elif a != b and b != c and c != a:
    print 3
else:
    print 2

Submission status: Accepted

Solution code:
a= set(list(map(int,input().split())))
print(len(a))

Submission status: Accepted

Solution code:
color = input().split()
color_set = set(color)
print(len(color_set))

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
input_line1 = map(int,raw_input().split(" "))
#input_line2 = map(int,raw_input().split(" "))
a = []
for i in range(3):
	if input_line1[i] not in a:
		a.append(input_line1[i])
print len(a)

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
color_list = []
for i in abc:
    if not i in color_list:
        color_list.append(i)
print(len(color_list))

Submission status: Accepted

Solution code:
from collections import defaultdict


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import numpy as np
a = list(map(int, input().split()))

a = np.asarray(a)
print(len(np.unique(a)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b == c:
    print(1)
elif (a == b) or (b == c) or (c == a):
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a,b,c =map(int,input().split())

if a==b==c:
    print("1")

elif a==b or b==c or a==c:
    print("2")

else:
    print("3")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a != b and b != c and a != c:
    print(3)
elif a == b and a == c:
    print(1)
else:
    print(2)

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(): return "".join(list(map(str, ans)))

print(len(set(rli())))

Submission status: Accepted

Solution code:
color = input()
abc = color.split()
num_kind = len(set(abc))
print(num_kind)

Submission status: Accepted

Solution code:
A,B,C = [int(i) for i in input().split()]
if A == B == C:
    print(1)
elif A == B or A == C or B == C:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
def ini(): return int(input())
def inli(): return list(map(int, input().split()))
def inf(): return float(input())
def inlf(): return list(map(float, input().split()))
def inl(): return list(input())
def pli(): return "".join(list(map(str, ans)))
x = inli()
x = list(set(x))
print(len(x))

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
s_a = set(a)
print(len(s_a))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b and b == c:
    print(1)
elif (a == b or b == c or c == a) and (a != c or b != c):
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == b == c :
    print (1)
elif a == b or b == c or c == a:
    print (2)
else :
    print (3)

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split()]

if a == b and a == c:
    print(1)
elif a == b or a == c or b == c:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
a,b,c = map(int, raw_input().split())
d = {a,b,c}
print len(d)

Submission status: Accepted

Solution code:
a = [i for i in input().split()]

b = set(a)

print(len(b))

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())

if a == b == c:
    print(1)
elif a == b:
    print(2)
elif a == c:
    print(2)
elif b == c:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
def solve():
    a, b, c = map(int, input().split())
    if a == b == c:
        ans = "1"
    elif a != b == c:
        ans = "2"
    elif a == b != c:
        ans = "2"
    elif a == c != b:
        ans = "2"
    elif a != b != c:
        ans = "3"

    print(ans)

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
colors = [int(i) for i in input().split()]
s_colors = set(colors)
print(len(s_colors))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
paints = set(int(i) for i in input().split())
print(len(paints))

Submission status: Accepted

Solution code:
a,b,c = map(int, raw_input().split())
if a == b and b == c:
    print 1
elif a == b or b == c or a == c:
    print 2
else:
    print 3

Submission status: Accepted

Solution code:
colors = [int(s) for s in input().split()]
print(len(set(colors)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

lis = [a, b, c]
lis.sort()
if lis[0] == lis[2]:
    print("1")
elif (lis[0] != lis[1]) and (lis[1] != lis[2]):
    print("3")
else:
    print("2")

Submission status: Accepted

Solution code:
l=map(int,raw_input().split())
c=3
for i in l:
    if l.count(i)==3:
        c= 1
        break
    elif l.count(i)==2:
        c= 2
        break
print c

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
S = {a,b,c}
print(len(S))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s=input()
print(len(set(s.split())))

Submission status: Accepted

Solution code:
import sys

def debug(x, table):
    for name, val in table.items():
        if x is val:
            print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr)
            return None

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


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
x = map(int, input().split())
print(len(set(x)))

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())
list = [a, b, c]
N = len(set(list))
print(N)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
abc = list(map(int,input().split()))
print(len(list(set(abc))))

Submission status: Accepted

Solution code:
colors = len(set(input().split()))
print(colors)

Submission status: Accepted

Solution code:
a,b,c = map(int,raw_input().split())
if a == b and a == c:
    print 1
elif a != b and b != c and c != a:
    print 3
else:
    print 2

Submission status: Accepted

Solution code:
a, b, c = input().split()

if a!=b and b!=c and a!=c:
	print(3)
elif a==b and b==c:
	print(1)
else:
	print(2)

Submission status: Accepted

Solution code:
a,b,c = map(int, raw_input().split())
s = set([a, b, c])
print len(s)

Submission status: Accepted

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

if a==b and b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
inputList = list(map(int,input().split(" ")))
temp = []

for i in range(3):
    if inputList[i] not in temp:
        temp.append(inputList[i])

print(len(temp))

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7


def main():
    a = input().split()
    s = set(a)
    return len(s)


print(main())

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())
x = {a, b, c}
print len(x)

Submission status: Accepted

Solution code:
a,b,c = [int(x) for x in raw_input().split(" ")]

if a == b and b == c and c == a:
	print 1

elif a == b or b == c or c == a:
	print 2

else:
	print 3

Submission status: Accepted

Solution code:
print(len(list(set([int(i) for i in input().split()]))))

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys

abc = sys.stdin.readline().split()
abc_arr = []
for x in abc:
    if x not in abc_arr:
        abc_arr.append(x)
print len(abc_arr)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == b == c:
    print('1')
elif a != b and a != c and b != c:
    print('3')
else:
    print('2')

Submission status: Accepted

Solution code:
#coding:utf-8
a,b,c=list(map(int,input().split()))

if a==b and b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
w = set(map(int, input().split()))
print(len(w))

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a=[]
a=map(int, raw_input().split())
print(len(set(a)))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b == c :
    print("1")
elif a == b or b == c or c == a :
    print("2")
else:
    print("3")

Submission status: Accepted

Solution code:
# coding: UTF8

#input = "30 30 30"
#l = map(int, input.split())
l = list(map(int, input().split()))
l.sort()
a = l[0]
b = l[1]
c = l[2]

if a == b == c:
	print("1")
elif a == b or b == c:
	print("2")
else:
	print("3")

Submission status: Accepted

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

if a != b and b != c and c != a:
   ans = 3
elif a == b and b == c:
   ans = 1
else:
   ans = 2

print(ans)

Submission status: Accepted

Solution code:
M = map(int, raw_input().split())
# M = [1,2,2]
print len(set(M))

Submission status: Accepted

Solution code:



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

Submission status: Accepted

Solution code:
a,b,c=map(int,raw_input().split())
col=[a,b,c]

col_kind=[]

for i in col:
    if i in col_kind:
        pass
    else:
        col_kind.append(i)

print len(col_kind)

Submission status: Accepted

Solution code:
inp = raw_input()
print len(set(inp.strip().split(' ')))

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split());

if (a != b) and (a != c) and (b != c):
    print("3")
elif ((a == b != c) or (a == c != b) or (b == c != a)):
    print("2")
else:print("1")

Submission status: Accepted

Solution code:
i = raw_input().split(' ')
if i[0] != i[1]:
  if i[1] != i[2]:
    re = 3 if i[2] != i[0] else 2
  else:
    re = 2
else:
  re = 2 if i[1] != i[2] else 1
      
print re

Submission status: Accepted

Solution code:
ho=input().split()
if(int(ho[0]) == int(ho[1]) == int(ho[2])):
    print(1)
elif (int(ho[0]) == int(ho[1]) or int(ho[1]) == int(ho[2]) or int(ho[2]) == int(ho[0])):
    print(2)
else:
    print(3)

Submission status: Accepted

Solution code:
def penki(a, b, c):
  if a==b and b==c:
    return 1
  elif a!=b and b!=c and c!=a:
    return 3
  else:
    return 2
 
a, b, c=map(int, input().split())
print(penki(a, b, c))

Submission status: Accepted

Solution code:

def penki(a, b, c):
  if a==b and b==c:
    return 1
  elif a!=b and b!=c and c!=a:
    return 3
  else:
    return 2

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

Submission status: Accepted

Solution code:
xs = map(int, raw_input().split())
print len(set(xs))

Submission status: Accepted

Solution code:
a = map(int,raw_input().split(" "))
b = a[0]
c = a[1]
d = a[2]
cnt = 3
if b == c:
    cnt = cnt -1
if b == d:
    cnt = cnt -1
if c == d:
    cnt = cnt -1
if c == d and c == b and b == d:
    cnt = cnt + 1
print cnt

Submission status: Accepted

Solution code:
a,b,c = map(int,raw_input().split())
x = [False for i in range(101)]
x[a] = True
x[b] = True
x[c] = True
cnt = 0
for i in x:
    if i:
        cnt+=1
print cnt

Submission status: Accepted

Solution code:
list = str(input()).split()
if int(list[0]) == int(list[1]):
   if int(list[1]) == int(list[2]):
      print(1)
   else :
      print(2)
elif int(list[0]) == int(list[2]):
   print(2)
elif int(list[1]) == int(list[2]):
   print(2)
else:
   print(3)

Submission status: Accepted

Solution code:
s = set(list(map(int, input().split())))
print(len(s))

Submission status: Accepted

Solution code:
def main():
	inpt = raw_input().split()
	cnt = 0
	for i in range(0, 3):
		if inpt[i] == inpt[(i+1)%3]:
			cnt += 1
	if cnt == 3:
		cnt -= 1
	print 3 - cnt
	
main()

Submission status: Accepted

Solution code:
input = raw_input()
l = input.split(" ")
a = map(int,l)
a2 = list(set(a))
print len(a2)

Submission status: Accepted

Solution code:
item_list = [0]*101
cnt = 0
a = map(int, input().split())
for i in a:
    if not item_list[i]:
        item_list[i] = 1
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
import sys

print len(set(sys.stdin.readline().split()))

Submission status: Accepted

Solution code:
try:
    color = map(int, raw_input().split(" "))
    count_col=list(set(color))
    print len(count_col)

except EOFError:
    pass

Submission status: Accepted

Solution code:
# A
from collections import Counter

print(len(Counter([int(i) for i in input().split()])))

Submission status: Accepted

Solution code:
a = map(int,input().split())
d = set([])

for i in a:
    d.add(i)

print(len(d))

Submission status: Accepted

Solution code:
a = [int(x) for x in raw_input().split()]
dic = {}
for x in a:
    dic[x] = 1

print len(dic)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

a, b, c = map(int, raw_input().split())

if a == b and b == c:
    print 1
elif a != b and b != c and a != c:
    print 3
else:
    print 2

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())

ans = len({a, b, c})
print(ans)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b and b==c:
	print(1)
elif a== b and a != c:
	print(2)
elif b== c and b != a:
	print(2)
elif c== a and c != b:
	print(2)
else:
	print(3)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

# get numbers
set_of_cans = set(map(int, raw_input().split()))
print len(set_of_cans)

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())

colour_list = [a, b, c]
bought = []
count = 0
for x in colour_list:
    if x not in bought:
        bought.append(x)
        count += 1

print count

Submission status: Accepted

Solution code:
lst = [x for x in input().split(" ")]
s = set(lst)
print(len(s))

Submission status: Accepted

Solution code:
line = input()
elems = line.split()
penkis = {int(e) for e in elems}
print(len(penkis))

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())

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

Submission status: Accepted

Solution code:
penki = input().split(" ")
if penki[0] == penki[1]:
    if penki[1] == penki[2]:
        print("1")
    else:
        print("2")
elif penki[1] == penki[2]:
    print("2")
elif penki[0] == penki[2]:
    print("2")
else:
    print("3")

Submission status: Accepted

Solution code:
print(len({n for n in input().split()}))

Submission status: Accepted

Solution code:
print(len({int(num) for num in input().split()}))

Submission status: Accepted

Solution code:
print len(set(map(int,raw_input().split(" "))))

Submission status: Accepted

Solution code:
num_list = input().split()
num_before_list = []
count = 0

for num in num_list:
  if num in num_before_list:
    continue
  else:
    count += 1
    num_before_list.append(num)

print(count)

Submission status: Accepted

Solution code:
s=map(int,raw_input().split())
s_jufk=list(set(s))
print len(s_jufk)

Submission status: Accepted

Solution code:
from sys import stdin
a = map(int,stdin.readline().split())
a = set(a)
print len(a)

Submission status: Accepted

Solution code:
a = map(int,raw_input().split())
 
print len(set(a))

Submission status: Accepted

Solution code:
a = raw_input().split()
print len(set(a))

Submission status: Accepted

Solution code:
a = map(int,raw_input().split())

print len(set(a))

Submission status: Accepted

Solution code:
#ABC046A
s=set(raw_input().split())
print len(s)

Submission status: Accepted

Solution code:
# coding: utf-8

colors = input().split()

bef = 0
count = 0
colors.sort()

for c in colors:
    if bef == 0:
        count += 1
        bef = c
    else:
        if c > bef:
            count += 1
            bef = c

print(count)

Submission status: Accepted

Solution code:
a = []              
a = input().split() 
s = set(a)          
print(len(s))

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())
print(len(set([a,b,c])))

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
ans=set(a)
print(len(ans))

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_input().split())
if (a==b==c):
    print 1
elif (a!=b and b!=c and c!=a):
    print 3
else:
    print 2

Submission status: Accepted

Solution code:
print(len({int(x) for x in input().split()}))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
print len(set(raw_input().split()))

Submission status: Accepted

Solution code:
A = list(map(int,input().split()))

# A.sort()
#
# # for i in range(len(A)):
# #     for j in range(len(A)):
# #         for k in range(len(A)):
# cnt = 0
# if A[0] != A[1] and A[0] != A[2]:
#     cnt += 1
# if A[0] !=

# a,b,c = map(int,input().split())
#
# if a!=b and a!=c and b!=c:
#     print(3)
# if

print(len(set(A)))

Submission status: Accepted

Solution code:
cans = set(map(int, raw_input().split()))
print len(cans)

Submission status: Accepted

Solution code:
def ans():
	l = list(map(int, raw_input().split()))
	if l[0] == l[1] and l[1] == l[2]:
		print 1
		return 1
	elif l[0] == l[1] or l[1] == l[2] or l[2] == l[0]:
		print 2
		return 2
	else:
		print 3
		return 3

if __name__ == '__main__':
	ans = ans()

Submission status: Accepted

Solution code:
# encoding: utf-8
import collections
l = raw_input().split()
print len(collections.Counter(l).keys())

Submission status: Accepted

Solution code:
l=map(int, raw_input().split())

col=1

if l[1]!=l[0]:
	col+=1
if l[2]!=l[1] and l[2]!=l[0]:
	col+=1

print col

Submission status: Accepted

Solution code:
#############################################################################
# -*- coding: utf-8 -*-
nums = list(map(int, input().split()))
a = nums[0]
b = nums[1]
c = nums[2]
count_a = nums.count(a)
count_b = nums.count(b)
count_c = nums.count(c)

list = [count_a, count_b, count_c]
ans = 4 - max(list)
print(ans)

Submission status: Accepted

Solution code:
import sys

def input_num():
    num = input().split()
    return num

def num_serch(num):
    penki_num = len(num)
    if num[0] == num[1]:
        penki_num = penki_num - 1
    if num[0] == num[2]:
        penki_num = penki_num - 1
    if num[1] == num[2]:
        penki_num = penki_num - 1

    if penki_num == 0:
        penki_num = penki_num + 1

    print(penki_num)

if __name__ == '__main__':
    num = input_num()
    num_serch(num)

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

if a == b == c:
  print(1)
elif a == b or b == c or c == a:
  print(2)
else:
  print(3)

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
i = 3

if n[0] == n[1] :
    i -= 1

if n[0] == n[2] :
    i -= 1

elif n[1] == n[2] :
    i -= 1

print(i)

Submission status: Accepted

Solution code:
sum = 3
input = list(map(int,input().split()))
if input[0] == input[1]:
    sum -=1
if input[0] == input[2]:
    sum -=1 
if input[1] == input[2]:
    sum -=1 
if sum == 0:
    sum = 1
print(sum)

Submission status: Accepted

Solution code:
l = list(map(int,list(input().split())))
color = 0
bought = []

for i in l:
    if i not in bought:
        color += 1
        bought.append(i)

print(color)

Submission status: Accepted

Solution code:
a = input().split()
s = {a[0]}
for i in a:
    s |= {i}
print(len(s))

Submission status: Accepted

Solution code:
a,b,c = raw_input().split()
a=int(a)
b=int(b)
c=int(c)
A = {a:1,b:1,c:1}

print len(A)