karan-and-his-sticker-collection
Source: hackerearth
Difficulty: EASY

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

Karan likes 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 you the number of stickers he will be able to put on his laptop.

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.

SAMPLE INPUT
2
18 400000000

SAMPLE OUTPUT
1


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


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'
t=int(input())
l=[int(i) for i in input().split(" ")]
c=0
for i in l:
	if i<300000000:
		c+=1
print(c)


num = int(input())
text = input().split()
count = 0
for item in text:
	if int(item) <300000000:
		count+=1
print(count)




t = int(input())
l = [int(x) for x in input().split()]
count = 0
y = 3*pow(10,8);
for i in l:
	if i < y:
		count+=1
print(count)



t = eval(input())
s = input().split()
count = 0
for i in range(t):
	if(int(s[i])<300000000):
		count = count+1
print(count)
	


import sys

t=sys.stdin.readline()
m = 3*(10**8)
c=0
for i in sys.stdin.readline().split():
	if(int(i)<m):
		c+=1
print(c)


n=int(input())
a=[x for x in input().split() if int(x)<300000000]
print((len(a)))


t = input()
num = list(map(int, input().split()))
l = [ i for i in num if i < 300000000]

print(len(l))


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
N=int(input())
l=list(map(int,input().split(" ")))
count=0
for i in l:
	if i<300000000: 
		count=count+1
print(count)


cou = 0
eval(input())
lst = list(map(int, input().split()))
for i in lst:
	if i < 300000000:
		cou += 1
print(cou)
	


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
n = int(input())
a = list(map(int,input().split()))
cnt=0
for i in range(n):
	if a[i] < 300000000:
		cnt+=1
print(cnt)


n = eval(input())
ans=0
for i in input().split():
	ans+=(int(i)<300000000)
			
print(ans)


t=int(input())
str = input()
sum=0
lst = list(str.split())
for i in lst:
	if(int(i)<300000000):
		sum+=1
print(sum)