import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int[] wallet = new int[n]; int[] favorite = new int[n]; for (int i=0; i=price[j] && favorite[i]<=spicy[j]) { miracle[j]++; best = Math.max(best,miracle[j]); } } } if (best==-1) {System.out.println(0);} else { for (int i=0; i