#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>#define int long long
#define double long double
#define uint unsigned long long
#define int128 __int128
#define uint128 unsigned __int128
usingnamespacestd;constexprintINF=1LL<<60;template<classT>boolchmax(T&a,constT&b){returna<b?a=b,1:0;}template<classT>boolchmin(T&a,constT&b){returna>b?a=b,1:0;}