#include <iostream>#include <string>using namespace std; int main() { string str; while (getline(cin, str)) { cout << str << endl; cout << str[0] << endl; } return 0;}
P5 ####My name is Nitin Bansal***
P5 P ####My name is Nitin Bansal*** #
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!