#include<iostream> int main(){ int a; scanf("%d"&a); printf("%d %d %d %d",a%10,a/10%10,a/100%100,a/1000); return 0; }