#include using namespace std; typedef long long ll; typedef long double ld; int ans=0; string s; bool used[15]; void dfs(int i, int tmx){ if(i>=s.size()-1){ ans=max(ans,tmx); return; } for(int k=i+1;k>s; dfs(0,0); cout<