fast-io

Ramesh and Suresh had a draw yet again! I know it is very frustrating, they are tired of all this too and want to determine who is smarter too. But after two such draws and no answer, they have lost their faith in the Mathematics professor. They have approached the Computer Science professor this time.

The CS professor is quite a young one and a competitive coder by night. He had just the right question for them. It was the one he used as a tie-breaker in a similar situation during his college and was confident that I would surely do the trick. The question goes like this: 

The problem is to verify whether the method they are using to read input data is sufficiently fast to handle problems branded with the enormous Input/Output warning. They are expected to be able to process at least 2.5MB of input data per second at runtime.

The professor likes laptop stickers. All his stickers are rectangular in shape. Since he has less space on his laptop, he likes to stick only the stickers whose length is less than 3*10^8 nm. Since he is running short of time, he asks them the number of stickers he will be able to put on his laptop. This way, he can get his work done and also break the tie between them.

Input:
The input begins with a positive integer N (N ≤ 10^9). The next line of input contains N space-separated, positive integers, not greater than 10^10 each. Ti is the length of ith sticker in nanometres.

Output:
Print the answer.

Note: There is no partial marking in this question. Chances are that you get 0 even when you have passed all the test cases.

Hint: SEARCH FAST I/O on GOOGLE

SAMPLE INPUT
2
18 400000000

SAMPLE OUTPUT
1

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
t=eval(input());
c=0
a=list(map(int,input().split()))
for i in range(t):
	if a[i]<300000000:
		c+=1
print(c)


#program by Mr. Awesome
lafda=eval(input());
count=0
stkrlen=list(map(int,input().split()))
for i in range(lafda):
	if stkrlen[i]<300000000:
		count+=1
print(count)



N = int(input())
res = 0;
check = 300000000
test = input()
test = test.split()
for i in range(N):
	if int(test[i]) < check:
		res += 1
		
print(res)


n=int(input())
lst=list(map(int,input().split()))
i=0
count=0
p=3*pow(10,8)
while i<n:
	if lst[i]<p:
		count=count+1
	i=i+1
print(count)