#include using namespace std; #define int long long typedef long long ll; typedef pairpint; typedef vectorvint; typedef vectorvpint; #define pb push_back #define mp make_pair #define fi first #define se second #define ln <void chmin(T &t,U f){if(t>f)t=f;} templatevoid chmax(T &t,U f){if(t>V[i]; int ans=114514; rep(i,30)rep(j,30)rep(k,30){ a[0]=i+1;a[1]=j+1;a[2]=k+1; chmin(ans,calc()); } cout<