#include <locale.h>
#include <iostream>
#include <string>
#include <algorithm>

setlocale(LC_ALL, "Japanese");
using namespace std;
wstring wstr= L"あいうえお";
reverse( &wstr[1], &wstr[3] );
wcout << wstr<<endl;
//質問小出しはするな