#include //以下cout時の色設定 #define COUTRESET "\033[0m" // 色をリセット #define COUTRED "\033[31m" // 赤色 #define COUTGREEN "\033[32m" // 緑色 #define COUTYELLOW "\033[33m" // 黄色 #define COUTBLUE "\033[34m" // 青色 using namespace std; using ll=long long; using ld=long double; using P=pair; const ll INF=9*1e15; const vector dx={0,0,1,-1}; const vector dy={1,-1,0,0}; #define rep(i,N) for(int i=0;i ostream& operator<<(ostream &os,pair &P){ return os<<"("< ostream& operator<<(ostream &os,vector vec){ for(auto val:vec){ os< void print(const T &vec){ int i=0; for(auto val:vec){ cout< void print2(const vector> &vec){ int i=0; for(auto v:vec){ cout< void chmin(T &a,T b){ if(a>b){ a=b; } return; } template void chmax(T &a,T b){ if(async_with_stdio(0); string S; cin>>S; string A; string B; bool flag=false; for(char c:S){ if((c<'0' || '9'