N=int(input()) S=input() mp=[0 for i in range(10)] for c in S: mp[ord(c)-ord('0')]+=1 print(mp[1]//2+mp[3]+mp[5]+mp[7])