def reverseSentence(s):
    """i am a student. -> student. a am i"""
    s = s[::-1]
    sNums = s.split(' ')
    for i in range(len(sNums)):
        sNums[i] = sNums[i][::-1]

    return " ".join(sNums)