a  = int(input());
print(len(str(a)))
print(a)

输入:

123

输出:

3
123