                K = int()
                S = input()
                 
                if  len(S) =< K
                	print(K)
                	print(S[:K])
                if K < len(S)
                	print(K)
                	print(S[:K]+"...")