#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. # input data N, M, C_0 = map(int, input().strip().split()) P = list(map(int, input().strip().split())) for _ in range(M): a, b, c = map(int, input().strip().split()) # TODO: going from a to b gains c coins # insert your code here print(42) # print the result