#include #include using namespace std; int main() { /* Type your code here. */ string s; string result; cin >> s; result = s.substr((s.length()/2)-1, 3); cout << "Midfix: " << result << endl; return 0; }