#include <iostream>
using namespace std;

int main(){
   string nome = "teste";
   cout << nome.back() << endl;
}

//https://pt.stackoverflow.com/q/512924/101