from collections import deque v, n = map(int, input().split()) r = [] g = [[] for _ in range(v + 1)] for _ in range(n): r.append(list(map(int,input().split()))) print(r)
To embed this project on your website, copy the following code and paste it into your website's HTML: