import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); in.nextLine(); Map<String, Integer> map = new LinkedHashMap<>(); for (int i = 0; i < n; i++) { map.put(in.next(), 0); } map.put("Invalid&quo...