// yukicoder: No.552 十分簡単な星1の問題 // 2019.4.18 bal4u #include #include #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int ins(char *s) { char *p = s; do *s = gc(); while (*s++ > ' '); *--s = 0; return s - p; } void outs(char *s) { while (*s) pc(*s++); } char s[25]; int main() { int w = ins(s); if (s[0] != '0') s[w] = '0'; outs(s), pc('\n'); return 0; }