/*--------------------------------------------------
created by st10 at Tue Oct 25 13:40:09 PDT 2016
--------------------------------------------------*/
#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;


/*--------------------------------------------------
 signature: first : string -> char
 purpose: expects a string (as a "list of char") and
         expects a NON-EMPTY string (as a NON-EMPTY "list of
         char") and returns the first char in that string

 examples: first("mooooo") == 'm'
           first("baaaaaaaa") == 'b'
--------------------------------------------------*/

char first(string a_string)
{
    return a_string.at(0);
}