nums = str(input())
numi = [int(n) for n in nums]
odd = [n for n in numi if n%2 == 1]
if sum(odd) > int(sum(numi)/2):
print("Odd is greater than Even")
elif sum(odd) < int(sum(numi)/2):
print("Even is greater than Odd")
print("Even and Odd are the same")
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.