print input()-len([i for i in map(int,raw_input().split())if i&1])*2