#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){return(A>B?A=B,1:0);} templateinline bool chmax(T&A,S B){return(A>X; int ans; if(X<=4)ans=X+(X==3?2:0); else ans=4+X%2+(X-3)/2*10; cout<>T; while(T--)sol(); }