#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) templatebool chmax(T &a,const U &b){if(a>n; int a,b,hoge[n]; ll shake=0; rep(i,n){ cin>>a>>b; chmax(shake,a+4*b); hoge[i]=a+4*b; } //cout<