Toggle navigation
Discord
YouTube
Facebook
Instagram
english
english
українська
Algotester 4.7
Build 712
2025-09-07
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3.8
s = input() a = ''.join([x if x >= '0' and x <= '9' else '0' for x in s]) if a[0] == '0': a = '1' + a[1:] b = ''.join([x if x >= '0' and x <= '9' else '9' for x in s]) print(a, b)