n=list(map(str,input().split("/")))
print("/"+n[-1])

d07a50fe19cc32df0761fa4b1a213150ef5e6707
<mask token>

<mask token>
print('/' + n[-1])

n = list(map(str, input().split('/')))
print('/' + n[-1])

n=list(map(str,input().split("/")))
print("/"+n[-1])
