#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
LL k,m,n,a,b;
bool flag;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>k>>m>>n;
for(int i=1;i<=m;i++)
{
cin>>a>>b;
if(1ll*k/a*b>=n)
cout<<i<<" ",flag=true;
}
if(!flag)
cout<<-1;
return 0;
}
3个RE,其他AC,求解。