num = int(input())
recipe = []
recipe = input().split()
recipe = [int(x) for x in recipe]
ingredients = []
scale = recipe[2] / recipe[1]

for x in range (0, recipe[0]):
    ingredients[x] = input().split
print(ingredients)