import java.util.*; public class Powerup{ public static void main(String[] arg){ int[] item = {0,0,0,0,0,0,0,0,0,0}; int n,m,res = 0,count = 0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); for(int i = 0;i1){ item[i] = item[i]-2; res++; } if(item[i] == 1)count++; } res = res + (count /4); System.out.println(res); } }