#include #define _USE_MATH_DEFINES using namespace std; typedef long long ll; typedef float fl; typedef double db; typedef bool bl; typedef string st; typedef pair P; typedef int itn; const int INF=100000000; const ll INFx=1000000000000; ll MOD=1000000007; int dx[4]={1,0,-1,0} , dy[4]={0,1,0,-1}; int DX[8]={0,-1,-1,-1,0,1,1,1} , DY[8]={1,1,0,-1,-1,-1,0,1}; string fi="01234567890123456789"; string al="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"; string AL="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"; int factorial(int i){return i ? factorial(i-1)*i:1;}; #define rep(i,n) for(int i=0;i<(n);++i) #define YesNo(flag) if(flag){cout<<"Yes"<>a>>b; itn res=0; bl flag=false; rep(i,8){ if(c[i]==a)flag=true; if(flag&&c[i]!=b)res++; else if(flag) break; } cout<