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