#include <iostream>
#include <vector>
using namespace std;
class Message {
public :
Message ( ) ;
Message ( string, string, time_t ) ;
void changeSubject ( string) ;
void addMessage ( string) ;
void append( ) ;
string getSender ( ) ;
string getRecipient ( ) ;
string getSubject ( ) ;
string getMessage ( ) ;
char * geTime ( ) ;
void printEverything ( ) ;
private :
string sender;
string recipient;
char * tstamp;
string subject;
vector < string> message;
} ;
void Message:: addMessage ( string messageo) {
message.push_back ( messageo) ;
}
void Message:: append ( ) {
int n = message.size ( ) ;
for ( int x = 0 ; x < n; x++ ) {
cout << message[ x] ;
}
return ;
}
int main( )
{
Message person;
string whatyouwant;
cin >> whatyouwant;
while ( whatyouwant ! = "." ) {
person.addMessage ( whatyouwant) ;
cin >> whatyouwant;
}
person.append ( ) ;
return 0 ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIE1lc3NhZ2UgewoKcHVibGljOgogICAgTWVzc2FnZSAoKTsKICAgIE1lc3NhZ2UgKHN0cmluZywgc3RyaW5nLCB0aW1lX3QpOwogICAgdm9pZCBjaGFuZ2VTdWJqZWN0IChzdHJpbmcpOwogICAgdm9pZCBhZGRNZXNzYWdlIChzdHJpbmcpOwogICAgdm9pZCBhcHBlbmQoKTsKICAgIHN0cmluZyBnZXRTZW5kZXIgKCk7CiAgICBzdHJpbmcgZ2V0UmVjaXBpZW50ICgpOwogICAgc3RyaW5nIGdldFN1YmplY3QgKCk7CiAgICBzdHJpbmcgZ2V0TWVzc2FnZSAoKTsKICAgIGNoYXIqIGdlVGltZSAoKTsKICAgIHZvaWQgcHJpbnRFdmVyeXRoaW5nICgpOwoKcHJpdmF0ZToKICAgIHN0cmluZyBzZW5kZXI7CiAgICBzdHJpbmcgcmVjaXBpZW50OwogICAgY2hhciogdHN0YW1wOwogICAgc3RyaW5nIHN1YmplY3Q7CiAgICB2ZWN0b3IgPHN0cmluZz4gbWVzc2FnZT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