import os
while 1:
    text = input()
    try:
        print('basename = ' + os.path.basename(text))
    except:
        print('unknown basename')
        pass
    try:
        print('dirname = ' + os.path.dirname(text))
    except:
        print('unknown durname')
        pass
    try:
        print('splitext = ' + str(os.path.splitext(text)))
    except:
        print('unknown splitext')
        pass

3e958900a8a04d13965418defeddd9d938d73998
<mask token>

<mask token>
while 1:
    text = input()
    try:
        print('basename = ' + os.path.basename(text))
    except:
        print('unknown basename')
        pass
    try:
        print('dirname = ' + os.path.dirname(text))
    except:
        print('unknown durname')
        pass
    try:
        print('splitext = ' + str(os.path.splitext(text)))
    except:
        print('unknown splitext')
        pass

import os
while 1:
    text = input()
    try:
        print('basename = ' + os.path.basename(text))
    except:
        print('unknown basename')
        pass
    try:
        print('dirname = ' + os.path.dirname(text))
    except:
        print('unknown durname')
        pass
    try:
        print('splitext = ' + str(os.path.splitext(text)))
    except:
        print('unknown splitext')
        pass
