//太酷啦
#include <bits/stdc++.h> using namespace std; int main(){ string line; while (getline(cin, line)&&line!="END"){ // 分行輸入直到輸入=="END"為止 stringstream ss(line); // 將每行的字串轉換成字串流 string word,acronym; while (ss>>word){ // 將每個單字轉換成字串 acronym+=toupper(word[0]); // 將第一個字母轉成大寫 } cout<<acronym<<" "<<word<<endl; // 輸出結果 } return 0; }