Most programmers will tell you that one of the ways to improve your performance in competitive programming is to [practice a lot of problems].

Our Chef took the above advice very seriously and decided to set a target for himself.
Chef decides to solve at least 10 problems every week for 4 weeks. 

Given the number of problems he actually solved in each week over 4 weeks as P_{1}, P_{2}, P_{3}, and P_{4}, output the number of weeks in which Chef met his target.

------ Input Format ------ 

There is a single line of input, with 4 integers P_{1}, P_{2}, P_{3}, and P_{4}. These are the number of problems solved by Chef in each of the 4 weeks.

------ Output Format ------ 

Output a single integer in a single line - the number of weeks in which Chef solved at least 10 problems.

------ Constraints ------ 

$1 ≤ P_{1}, P_{2}, P_{3}, P_{4} ≤ 100$

----- Sample Input 1 ------ 
12 15 8 10

----- Sample Output 1 ------ 
3

----- explanation 1 ------ 
Chef solved at least $10$ problems in the first, second and fourth weeks. He failed to solve at least $10$ problems in the third week. Hence, the number of weeks in which Chef met his target is $3$.

----- Sample Input 2 ------ 
2 3 1 10

----- Sample Output 2 ------ 
1

----- explanation 2 ------ 
Chef solved at least $10$ problems in the fourth week. He failed to solve at least $10$ problems in all the other three weeks. Hence, the number of weeks in which Chef met his target is $1$.

----- Sample Input 3 ------ 
12 100 99 11

----- Sample Output 3 ------ 
4

----- explanation 3 ------ 
Chef solved at least $10$ problems in all the four weeks. Hence, the number of weeks in which Chef met his target is $4$.

----- Sample Input 4 ------ 
1 1 1 1

----- Sample Output 4 ------ 
0

----- explanation 4 ------ 
Chef was not able to solve at least $10$ problems in any of the four weeks. Hence, the number of weeks in which Chef met his target is $0$.

Source: codechef | Difficulty: EASY
Tags: Data structures

Implementation


Solutions:
l = list(map(int, input().split()))
c = 0
for i in l:
	if i >= 10:
		c += 1
print(c)


arr = list(map(int, input().split()))
a = 0
for i in range(4):
	if arr[i] >= 10:
		a += 1
print(a)


l = [int(i) for i in input().split()]
print(len(list(filter(lambda x: x >= 10, l))))


p = map(int, input().split())
count = 0
for i in p:
	if i >= 10:
		count = count + 1
print(count)


a = list(map(int, input().split()))
total = 0
for i in a:
	if i >= 10:
		total = total + 1
print(total)


p = list(map(int, input().split()))
success = 0
for element in p:
	if element >= 10:
		success += 1
print(success)


n = list(map(int, input().split()))
count = 0
for i in n:
	if i >= 10:
		count += 1
print(count)


count = 0
for x in map(int, input().split()):
	if x >= 10:
		count += 1
print(count)


lst = list(map(int, input().split()))
c = 0
for i in range(0, 4):
	if lst[i] >= 10:
		c += 1
print(c)


(A, B, C, D) = map(int, input().split())
ans = 0
if A >= 10:
	ans += 1
if B >= 10:
	ans += 1
if C >= 10:
	ans += 1
if D >= 10:
	ans += 1
print(ans)


st = input()
(p1, p2, p3, p4) = st.split()
count = 0
if int(p1) >= 10:
	count += 1
if int(p2) >= 10:
	count += 1
if int(p3) >= 10:
	count += 1
if int(p4) >= 10:
	count += 1
print(count)


(a, b, c, d) = map(int, input().split())
co = 0
if a >= 10:
	co += 1
if b >= 10:
	co += 1
if c >= 10:
	co += 1
if d >= 10:
	co += 1
print(co)


(a, b, c, d) = map(int, input().split())
count = 0
if a > 9:
	count += 1
if b > 9:
	count += 1
if c > 9:
	count += 1
if d > 9:
	count += 1
print(count)


arr = list(map(int, input().split()))
c = 0
for x in arr:
	if x >= 10:
		c = c + 1
print(c)


paginas = input().split(' ')
cont = 0
for i in range(len(paginas)):
	numero = int(paginas[i])
	if numero >= 10:
		cont += 1
print(cont)


s = input().split()
count = 0
for i in s:
	if int(i) >= 10:
		count += 1
print(count)


holder = 0
(A, B, C, D) = map(int, input().split())
if A >= 10:
	holder = holder + 1
if B >= 10:
	holder = holder + 1
if C >= 10:
	holder = holder + 1
if D >= 10:
	holder = holder + 1
else:
	holder = holder + 0
print(holder)


s = 0
(x, y, z, a) = map(int, input().split())
if x >= 10:
	s += 1
if y >= 10:
	s += 1
if a >= 10:
	s += 1
if z >= 10:
	s += 1
print(s)


lst = list(map(int, input().split(' ')))
p = 0
for i in range(len(lst)):
	if lst[i] >= 10:
		p = p + 1
print(p)


l = list(map(int, input().split()))
count = 0
for i in range(len(l)):
	if l[i] >= 10:
		count = count + 1
print(count)


(p1, p2, p3, p4) = map(int, input(' ').split())
c = 0
if p1 >= 10:
	c += 1
if p2 >= 10:
	c += 1
if p3 >= 10:
	c += 1
if p4 >= 10:
	c += 1
print(c)


a = list(map(int, input().split()))
print(len([i for i in a if i >= 10]))


t = 4
c = 0
l = [int(t) for t in input().split()]
for i in range(t):
	if l[i] >= 10:
		c += 1
print(c)


x = list(map(int, input().split()))
res = 0
for i in x:
	if i >= 10:
		res += 1
print(res)


(N, M, L, K) = map(int, input().split())
a = 0
b = 0
if N >= 10:
	a += 1
else:
	b += 1
if M >= 10:
	a += 1
else:
	b += 1
if L >= 10:
	a += 1
else:
	b += 1
if K >= 10:
	a += 1
else:
	b += 1
print(a)


d = list(map(int, input().split()))
s = 0
for i in range(4):
	if d[i] >= 10:
		s = s + 1
print(s)


b = input()
s = b.split()
a = 0
for i in s:
	if int(i) >= 10:
		a += 1
print(a)


(a, b, c, d) = map(int, input().split())
count = 0
for i in range(1):
	if a >= 10:
		count += 1
	if b >= 10:
		count += 1
	if c >= 10:
		count += 1
	if d >= 10:
		count += 1
print(count)


ans = 0
s = list(map(int, input().split()))
for i in s:
	if i >= 10:
		ans += 1
print(ans)


def myFunction():
	ans = 0
	arr = list(map(int, input().strip().split()))[:4]
	for x in arr:
		if x >= 10:
			ans += 1
	return ans
print(myFunction())


(a, b, c, d) = map(int, input().split())
if a >= 10:
	e = 1
else:
	e = 0
if b >= 10:
	f = 1
else:
	f = 0
if c >= 10:
	g = 1
else:
	g = 0
if d >= 10:
	h = 1
else:
	h = 0
print(e + f + g + h)


num = map(int, input().split())
cnt = 0
for i in num:
	if i >= 10:
		cnt += 1
print(cnt)


p = list(map(int, input().split()))
a = 0
for i in p:
	if i > 9:
		a = a + 1
print(a)


c = 0
(p1, p2, p3, p4) = map(int, input().split())
l = [p1, p2, p3, p4]
for i in l:
	if i >= 10:
		c = c + 1
	else:
		pass
print(c)


a = list(map(int, input().split(' ')))
counter = 0
for num in a:
	if num >= 10:
		counter += 1
print(counter)


x = input()
y = []
for i in x.split():
	y.append(i)
X = [int(x) for x in y]
target = 0
for i in X:
	if i >= 10:
		target += 1
print(target)


q = list(map(int, input().split()))
length = 0
for k in q:
	if k >= 10:
		length = length + 1
print(length)