#include #include #include #include using namespace std; int main(){ int n; cin>>n; int a; int c=1; int k=log10(double(n))+1; //cout<