n_num = int(input()) tsurukame_d = map(int, input.split(" ")) tsuru=0 kame=0 for tsurukame in range(tsurukame_d.length): if tsurukame%4==0: tsuru=tsuru+1 else: kame=kame+1 print(str(tsuru)+" "+str(kame))