Untitled

 avatar
user_5668965
python
8 days ago
211 B
1
Indexable
Never
n = int(input())
s = input()
bal = 0
for c in s:
    if c == '0':
        bal += 1
    else:
        bal -= 1
if bal != 0:
    print('1' + '\n' + s)
else:
    print('2' + "\n" + s[0:-1] + " " + s[-1])
Leave a Comment