Minimum removals to make sum even



Problem to find the minimum removals to make sum even.



Example-1:


Input    : n = [ 1, 2, 3, 4, 5]
Output   : 1    


Example-2:


Input    : n = [ 1, 3, 5, 2]
Output   : 1 


Example-3:


Input    : n = [ 1, 5, 7, 9]
Output   : 0 







Solution




n = [ 1, 2, 3, 4, 5]

if(sum(n) % 2 == 0):

    print(0)

else:

    print(1)



Output



1