# n = int(raw_input()) for i in range(n): s = raw_input() l = len(s) if l % 2: m = s[(l - 1)/2] else: m = s[l/2 - 1:l/2 + 1] print("%s %s" % (l,m))