import strutils, sequtils const mo = 1000000000 + 7 proc add(a: var int64, b: int64) = a += b if a >= mo: a -= mo proc sub(a: var int64, b: int64) = a -= b if a < 0: a += mo proc main() = let nmk = stdin.readLine.strip.split.map(parseInt) (n, m, k) = (nmk[0], nmk[1], nmk[2]) lr = (0..