#include <iostream>
#include <string>
using namespace std;
int main()
{
string s = "c++ c c# java python";
size_t pos = s.find_last_of(' ');
cout << pos << endl;
cout << s.substr(0, pos) << endl;
cout << s.substr(pos + 1) << endl;
return 0;
}
/*
run:
13
c++ c c# java
python
*/