//code ._.
#include <iostream>
#include <cmath>
int main() {
int n;
std::cin >> n;
for (int i = 0; i < 10; i++) {
int razryad = std::pow(10, i);
int mne_lenb = n % razryad;
if (mne_lenb == 0) {
continue;
}
std::cout << mne_lenb
<< std::endl;
n -= mne_lenb;
//code ._.
#include <iostream>
#include <cmath>
int main() {
int n;
std::cin >> n;
for (int i = 0; i < 10; i++) {
int razryad = std::pow(10, i);
int mne_lenb = n % razryad;
if (mne_lenb == 0) {
continue;
}
std::cout << mne_lenb
<< std::endl;
n -= mne_lenb;
}
}