Hide

Problem B
Input Scandal

Languages en sv

Inputte is solving their first problems Kattis. Most of the problems Inputte have solved so far has been relatively easy, since the number of input rows is always clearly stated in the problem.

One day, Inputte was trying a whole new problem. The problem had an unknown amount rows of input. Inputte had no clue how to read the input without taking too little or too much.

Can you help Inputte with this problem?

Input

The input consists of an unknown number of lines of text, where all characters are printable ASCII characters with ASCII values from $32$ to $126$, which are all common characters that can be read in as input and printed out. Indatan slutar med end-of-file.

The total number of characters in the input will not exceed $10^6$.

The input is read in like any other problem, using standard input. In C++, this can be done with for example getline(cin, x);, and in Python with x = input().

1 Output

First, print an integer on a line, indicating the number of lines in the input. Then on the following rows, print out all the input, in exactly the same format and order as it was given in the input data.

2 Scoring

Your solution will be tested on several test case groups. To get the points for a group, it must pass all the test cases in the group.

Group

Point value

Constraints

$1$

$50$

The input consists of only one line of text.

$2$

$50$

No additional restrictions.

Sample Input 1 Sample Output 1
This is the input.
1
This is the input.
Sample Input 2 Sample Output 2
#!/usr/bin/env python3

print("Hello World!")
3
#!/usr/bin/env python3

print("Hello World!")