#include #include #include // Evaluate for "226210", other than that the code is self explanatory using namespace std; mapdp; int main() { string input; int i,strLength; cin>>input; while(input[0]!='0') { strLength=input.length(); dp[0]=1; dp[1]=1; for(i=1;i>input; } return 0; }