from typing import Tuple
from typing import List


def read_input() -> Tuple[int, int, List[str]]:
    """Read test input from stdin."""
    num_letters = int(input())
    letters = input().split()
    k = int(input())
    return (num_letters, k, letters)