#include<bits/stdc++.h>
#define INF 0x3f3f3f3f
#define N 10001
using namespace std;
string s1[N],s,x;
int ans;
int main(){
int n;
cin>>n;
getchar();
for(int i=0;i<n;i++){
x="";
getline(cin,s);
for(int j=0;j<s.size();j++){
if(s[j]==' ') ans++;
else x=x+s[j];
}
s1[i]=x;
}
cout<<ans<<endl;
for(int i=0;i<n;i++){
cout<<s1[i]<<endl;
}
return 0;
}
评论区