#include <iostream>   
#include <string>

using namespace std;

char ch1;
char ch2;
char ch3;
char cha;
char chb;
char chc;

int main()
{

  cin >> ch1;
  cin >> ch2;
  cin >> ch3;

  cin.get(cha);
  cin.get(chb);
  cin.get(chc);

  cout << endl << "Here's the output from >>:" << ch1 << ch2 << ch3 << "\n\n";
  cout << "Here's the output from cin.get():" << cha << chb << chc << "\n\n";

  return 0;
}
