from random import randint
x = int(input())
lst = []
for i in range(x):
lst.append(randint(1000,6000))
print(len([i for i in lst if i%2 == 1]))
from random import randint
x = int(input())
lst = []
for i in range(x):
lst.append(randint(1000,6000))
print(len([i for i in lst if i%2 == 1]))