import java.util.*; public class Main{ static final int MOD = (int)1e9+7; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int[][] complexity = new int[301][301]; for(int i=0; i