Олимпиадный тренинг

Задача 18713. Sequence View Transformation


Задача

Темы:
The input file contains the sequence
natural numbers not exceeding 1000. The sequence ends
the number 0. The number of numbers in the sequence does not exceed 100.
 
Output the number of numbers in the sequence (not counting 0) to the output file,
and then the numbers themselves.
 
Sample input file