Write a Python program to count the number of even and odd numbers from input.
count_even = 0
count_odd = 0
numbers = input()
for x in numbers:
for i in x:
if i % 2 == 0 :
count_even += 1
else:
count_odd += 1
print(count_even)
print(count_odd)
ERROR: Traceback (most recent call last): File "main.py", line 6, in if i % 2 == 0 : TypeError: not all arguments converted during string formatting