#include using namespace std; typedef unsigned long long ull; typedef long long ll; int main(){ int t, n; cin >> t >> n; int h[n]; h[0]=t; for(int i=1; i> h[i]; pair p[n]; for(int i=0; i>()); for(int i=0; i