#include using namespace std; using Int = long long; //INSERT ABOVE HERE Int calc(string s){ Int n=s.size(); vector a(n); for(Int i=0;i>n; Int ans=-1; for(Int i=0;i>s; Int res=calc(s); if(ans<0||ans>res) ans=res; } cout<