#include using namespace std; typedef long long ll; const int INF = 1e9; const int MOD = 1e9+7; int main(void) { string s;cin >> s; ll ans = stoll(s); for(int i=0;i