Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 5th, 2019
3,482
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
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])
Add Comment
Please,
Sign In
to add comment
Public Pastes
Free Crypto Method
CSS | 1 min ago | 0.91 KB
+16,000$ in 3 days
CSS | 14 min ago | 0.91 KB
Crypto Exploit
CSS | 32 min ago | 0.94 KB
Big money never comes clean - Guide
CSS | 32 min ago | 0.94 KB
+18,620$ in 3 days [Method]
CSS | 32 min ago | 0.94 KB
Crypto Exploit
CSS | 34 min ago | 0.94 KB
+18,620$ in 3 days [Method]
CSS | 37 min ago | 0.94 KB
Big money never comes clean - Guide
CSS | 41 min ago | 0.94 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!