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; m count = new ArrayList<>(); for(int i=0; i2&&count.get(2)>0){ kumi++; int a = count.get(0)-1; int b = count.get(1)-1; int c = count.get(2)-1; count.remove(0); count.remove(0); count.remove(0); count.add(a); count.add(b); count.add(c); Collections.sort(count, Collections.reverseOrder()); } System.out.println(kumi); } } }