#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. # input data N, M = map(int, input().strip().split()) for i in range(M): a, b, z = map(int, input().strip().split()) # use a, b and z # insert your code here print(42) # print the result