from sys import stdin
print("Jutge enters.")
for line in stdin:
    print("/" + line.strip() + "/", sortlengths(line.split()))
print("Jutge exits.")