#include using namespace std; int main(){ string s,t; cin>>s>>t; map mp; for(int i=0;i<2;i++)for(int j=0;j<2;j++)mp[{s[i],t[j]}]+=25; cout<