// OBI2023 // Tarefa Chinelos // r. anido import java.util.Scanner; public class chinelos { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] estoque = new int[n]; for (int i=0; i 0) { estoque[pedido] -= 1; total += 1; } } System.out.printf("%d\n", total); } }