#include #include #include using namespace std; int main(){ map h; long n,m; cin>>n>>m; for(long i=0;i>s>>a; h[s]=a; } for(auto t:h){ cout<