using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string n = Console.ReadLine(); int[] itemcnt = new int[10]; int defeattime = int.Parse(n); int pupcnt = 0; for(int i=0;i= 2) { itemcnt[i] = itemcnt[i] - 2; pupcnt++; } if (itemcnt[i] == 1) { itemcnt[i]--; cnt++; } if (cnt == 4) { pupcnt++; cnt = 0; } } Console.WriteLine(pupcnt); } } }