using namespace std;
string t {s};
int n (t.length()), x {}, y {n - 1};
while (x not_eq n && isspace(t[x])) ++x;
while (y not_eq -1 && isspace(t[y])) --y;
t = t.substr(x, (y - x) + 1);
using namespace std;
string t {s};
int n (t.length()), x {}, y {n - 1};
while (x not_eq n && isspace(t[x])) ++x;
while (y not_eq -1 && isspace(t[y])) --y;
t = t.substr(x, (y - x) + 1);