#include <iostream>
#include <locale>
using namespace std;
int main(){
std::cout<<"Currently systemwide applied locale: "<<std::locale("").name()<<std::endl
<< "Please enter the locale that you want to change this app to: ";
std::string locale;
std::cin>>locale;
try{
std::locale::global(std::locale(locale.c_str()));
}
catch(std::exception& e){
std::cout<<"Failed to change the locale: "<<e.what()<<std::endl;
}
wstring instr;
wcin >> instr;
wcout << endl << instr;
return 0;
}