import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int n = koko.nextInt(); for(int m=0; m0){ kumi++; count[t-3]--; count[t-2]--; count[t-1]--; Arrays.sort(count); } System.out.println(kumi); } } }