import sys inputs = [] for line in sys.stdin: inputs.extend(list(map(int, line.split()))) def count_combinations(n, sum, nums): dp = [[0 for _ in range(sum + 1)] for _ in range(n + 1)] ''' [ [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], ...