summaryrefslogtreecommitdiff
path: root/3p5.cpp
blob: 32260d123386a5eed8f1983c0a42455f71f58223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <iostream>

/*
 *
 * 3.5
 *
 *
 */

using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
int main () {

	string full;
	string full_sep;
	string DD;
	while(cin >> DD) {
		full += DD;
		full_sep += DD + ' ';
	}
	cout << full << endl;
	cout << full_sep << endl;
 
	return 0;
}