MOD = 10**9+7 n, m = map(int, raw_input().split()) if n