k, m, n = map(int, input().split()) res = [] for i in range(m): ai, bi = map(int, input().split()) if ai == 0 and bi > 0: res.append(str(i + 1)) continue if bi <= 0: continue count = k // ai if count * bi >= n: res.append(str(i + 1)) if len(res): print(' '.join(res)) else: print(-1)