#include <iostream> #include <iterator> using namespace std; int main() { istream_iterator<char> in_it(cin); do { cout << *in_it++; } while (*in_it != '.'); return 0; }
a a aa aa aa aa aaaaaaa^CTerminate batch job (Y/N)? n