#!/usr/bin/python

str = 'Manual-Testing/Selenium-Testing/Python.3.6.5'

print(str)
print(' ')
print(str.rsplit('/',1)[0])
print(' ')
print(str.rsplit('-',1)[0])
print('')
print(str.rsplit('P',1)[0])
print(' ')
print(str.rsplit('T',1)[0])
