import strutils, sequtils, sets, algorithm let t1 = stdin.readline.split.map(parseInt) (N, M, Q) = (t1[0], t1[1], t1[2]) var edges, query = newSeq[(int, int)]() for i in 0..