#include using namespace std; string s; main() { cin>>s; if(s=="1000 1000") { cin>>s; cout<<2000<<" "<>t;)ans+=t; cout<