#include<stdio.h> int main() { int n, weishu = 0, ge, shi, bai, qian, wan; scanf_s("%d", &n); while (n != 0) { n = n / 10; weishu++; } printf("%d\n", weishu); if (weishu == 5) { ge = n % 10; shi = (n % 100) / 10; bai = (n % 1000) / 100; qian = (n % 10000) / 1000; wan = n / 10000; printf("%d %d %d %d %d\n", wan, qian, bai, shi, ge); printf("%d%d%d%d%d\n", ge, shi, bai, qian, wan); } else if (weishu == 4) { ge = n % 10; shi = (n % 100) / 10; bai = (n % 1000)