#include <iostream>
#include <string>
using namespace std;

int main() {
	string text;
	int noLines = 0;
	while (getline(cin, text)){
		++noLines;
		if (noLines == 2) {
			cout << text;
		}
		cout << noLines;
	}
	if (noLines <= 1) {
		cout << "text prea scurt";
	}
	return 0;
}