#include<iostream>
using namespace std;

int main(){
  int N,i1,i2,i3,a,b,s=0;
  cin >> N;
  
  while (N==0){
  a=N;
  for (i1=0,a==0,i2++){
    a=a/10
  }
  for (i2=0,i2<i1,i2++){
    b=N/10
  }
  s+=b
  for (i3=0,i3==i1,i3++){
    b*10
  }
  N-b*10
  }
  
}
