pizza
문제
Mirko is having a birthday party so he is inviting his friends to eat some pizza.
Unfortunately, Mirko's friends are very young and cannot eat an entire pizza, but all of them know exactly how much pizza they can eat and insist on getting the exact amount of pizza in one slice.
Their requests break down to three different pizza slices - either one quarter or a half or three quarters of pizza.
Write a program that will help Mirko find out what is the minimal number of pizzas he has to order so that everyone gets exact amount of pizza they want.
입력
First line contains an integer N, 1 ≤ N ≤ 10,000, number of friends.
In each of next N lines there is amount of pizza that each of Mirko's friends wants to eat, that is the fraction 1/4, 1/2 or 3/4.
출력
In the first and only line you should write the minimal number of pizzas Mirko has to order.
예제
예제 1
3 1/2 3/4 3/4
3
예제 2
5 1/2 1/4 3/4 1/4 1/2
3
예제 3
6 3/4 1/2 3/4 1/2 1/4 1/2
4