#include<iostream>using namespace std;int main(){ int i; while(i==0){ cout<<i%10<<endl; i/=10;} return 0;}