Vasya is an active Internet user. One day he came across an Internet resource he liked, so he wrote its address in the notebook. We know that the address of the written resource has format: <protocol>://<domain>.ru[/<context>] 

where:  <protocol> can equal either "http" (without the quotes) or "ftp" (without the quotes),  <domain> is a non-empty string, consisting of lowercase English letters,  the /<context> part may not be present. If it is present, then <context> is a non-empty string, consisting of lowercase English letters. 

If string <context> isn't present in the address, then the additional character "/" isn't written. Thus, the address has either two characters "/" (the ones that go before the domain), or three (an extra one in front of the context).

When the boy came home, he found out that the address he wrote in his notebook had no punctuation marks. Vasya must have been in a lot of hurry and didn't write characters ":", "/", ".".

Help Vasya to restore the possible address of the recorded Internet resource.


-----Input-----

The first line contains a non-empty string that Vasya wrote out in his notebook. This line consists of lowercase English letters only. 

It is guaranteed that the given string contains at most 50 letters. It is guaranteed that the given string can be obtained from some correct Internet resource address, described above.


-----Output-----

Print a single line — the address of the Internet resource that Vasya liked. If there are several addresses that meet the problem limitations, you are allowed to print any of them.


-----Examples-----
Input
httpsunrux

Output
http://sun.ru/x

Input
ftphttprururu

Output
ftp://http.ru/ruru



-----Note-----

In the second sample there are two more possible answers: "ftp://httpruru.ru" and "ftp://httpru.ru/ru".

Difficulty: competition

Starter code:

Solutions:
s=""
L=[]
s=input()
k=0
r=0
c=0
if s[0]=='h':
    L.append('http://')
    c=4
    s=s[c:]
elif s[0]=='f':
    L.append('ftp://')
    c=3
    s=s[c:]
r=s.find('ru',1)
L.append(s[:r])
L.append('.ru')

k=r+2

if k<len(s):
    L.append('/')
    L.append(s[k:])
   
print(''.join(L))



s=""
L=[]
s=input()
k=0
r=0
c=0
if s[0]=='h':
    L.append('http://')
    c=4
    s=s[c:]
elif s[0]=='f':
    L.append('ftp://')
    c=3
    s=s[c:]
r=s.find('ru',1)
L.append(s[:r])
L.append('.ru')

k=r+2

if k<len(s):
    L.append('/')
    L.append(s[k:])
   
print (''.join(L))

s = input()
out = ""
l = 0
if s.startswith("http"):
    out += "http://"
    l = 4
else:
    out += "ftp://"
    l = 3
r = s.index("ru")
if r == l:
    r = s.index("ru",r+2,len(s) - 1)
out += s[l:r] + ".ru"
if r+2 != len(s):
    out += "/" + s[r+2:]
print(out)

t = input()
if t[0] == 'h': ans, t = 'http://', t[4:]
else: ans, t = 'ftp://', t[3:]
k = t.find('ru', 1)
ans += t[:k] + '.ru'
if len(t) > k + 2: ans += '/' + t[k + 2:]
print(ans)

a = list(input())
if a[0] == 'f':
    print('ftp://',end = '')
    a = a[3:]
    while len(a[:''.join(a).index('ru')]) == 0:
        if len(a[:''.join(a).index('ru')]) != 0:
            print(''.join(a[:''.join(a).index('ru')]),end = '')
        else:
            print('ru',end = '')
            a = a[''.join(a).index('ru')+2:]
    print(''.join(a[:''.join(a).index('ru')]),end = '')        
    a = a[''.join(a).index('ru')+2:]
    print('.ru',end='')
    if len(a) != 0:
        print('/',end='')
        print(''.join(a))  
else:
    print('http://',end = '')
    a = a[4:]    
    while len(a[:''.join(a).index('ru')]) == 0:
        if len(a[:''.join(a).index('ru')]) != 0:
            print(''.join(a[:''.join(a).index('ru')]),end = '')
        else:
            print('ru',end = '')
            a = a[''.join(a).index('ru')+2:]
    print(''.join(a[:''.join(a).index('ru')]),end = '')
    a = a[''.join(a).index('ru')+2:]
    print('.ru',end='')
    if len(a) != 0:
        print('/',end='')
        print(''.join(a)) 

s=input()
p=True
if s[0]=='h':
    s1='http://'
    x=7
else:
    s1='ftp://'
    x=6
for i in range(len(s1)-3,len(s)):
    if s[i:i+2]=='ru' and p and len(s1)!=x:
        s1+='.'
        p=False
    if s1[-3:]=='.ru':
        s1+='/'
    s1+=s[i]
print(s1)

s = input()
if(s[0]=='h'):
    s = s[:4]+'://'+s[4:]
else:
    s = s[:3]+'://'+s[3:]
f=s.find("ru",s.find("://")+4)
s=s[:f]+"."+s[f:]
if(len(s)-f>3):
    s=s[:f+3]+'/'+s[f+3:]
print(s)



s = input()
if s[:3] == "ftp":
    pre = "ftp://"
    s = s[3:]
elif s[:4] == "http":
    pre = "http://"
    s = s[4:]
index = s[1:].index("ru")+1
if index == len(s)-2:
    s = pre+s[:index]+"."+s[index:]
else:
    s = pre+s[:index]+"."+s[index:index+2]+"/"+s[index+2:]
print(s)


s=input()
t=3+(s[0]>'f')
p=s.find('ru',t+1)
print(s[:t]+'://'+s[t:p]+'.ru'+(' /'[p+2<len(s)])+s[p+2:])

def main():
    s = input()
    le = len(s)
    i = 3 + s.startswith("http")
    res = [s[:i] + ":/"]
    j = s.find("ru", i + 1)
    res.append(s[i:j] + ".ru")
    if j + 2 < le:
        res.append(s[j + 2:])
    print('/'.join(res))


def __starting_point():
    main()

__starting_point()

n = input()
i = 0
z = len(n) - 1
res = ""
end = 0
if n[0] == 'f':
    res += 'ftp://'
    i += 3
elif n[0] == 'h':
    res += 'http://'
    i += 4
while i < z:
    if n[i] == 'r' and n[i + 1] == 'u':
        if res[len(res) - 1:len(res)] == '/':
            res += n[i]
            i += 1
        else:
            res += ".ru/"
            i += 2
            end = i
            break
    else:
        res += n[i]
        i += 1
result = res + n[end:]
if result[len(result) - 1:len(result)] == '/':
    print(result[:len(result) - 1])
else:
    print(result)


n = input()
i = 0
z = len(n) - 1
res = ""
end = 0
if n[0] == 'f':
    res += 'ftp://'
    i += 3
elif n[0] == 'h':
    res += 'http://'
    i += 4
while i < z:
    if n[i] == 'r' and n[i + 1] == 'u':
        if res[len(res) - 1:len(res)] == '/':
            res += n[i]
            i += 1
        else:
            res += ".ru/"
            i += 2
            end = i
            break
    else:
        res += n[i]
        i += 1
result = res + n[end:]
if result[len(result) - 1:len(result)] == '/':
    print(result[:len(result) - 1])
else:
    print(result)


s = input()
if s[0:3] == "ftp":
    s = s.replace("ftp", "ftp://", 1)
    s = s[0:7] + s[7:].replace("ru", ".ru/", 1)
else:
    s = s.replace("http", "http://", 1)
    s = s[0:8] + s[8:].replace("ru", ".ru/", 1)

if s[-1] == "/":
    print(s[0:-1])
else:
    print(s)


def s():
    a = input()
    r = 'http://' if a[0] == 'h' else 'ftp://'
    if a[0] == 'h':
        a = a[4:]
    else:
        a = a[3:]
    c = a[0]
    a = a[1:].replace('ru','.ru/',1)
    print(r,c,a[:-1] if a[-1] == '/'else a,sep='')
s()


s=input()
t=3+(s[0]>'f')
p=s.find('ru',t+1)
print(s[:t]+'://'+s[t:p]+'.ru'+(' /'[p+2<len(s)])+s[p+2:])

s=input().strip()

con1, con2 = 'http://', 'ftp://'

if s[0]=='h':
	start= 4
	end = 4
	for i in range(4,len(s)-1):
		if s[i]+s[i+1] == 'ru' and i>4:
			end = i
			break
	ans = s[start:end]

	con = s[end+2:]
	if con !='':
		ans = con1+ans+'.ru/'+con
	else:
		ans = con1+ans+'.ru'
	print(ans)

elif s[0]=='f':
	start= 3
	end = 3
	for i in range(3,len(s)-1):
		if s[i]+s[i+1] == 'ru' and i>3:
			end = i
			break
	ans = s[start:end]
	con = s[end+2:]
	if con !='':
		ans = con2+ans+'.ru/'+con
	else:
		ans = con2+ans+'.ru'
	print(ans)


s=input()
n=len(s)
if s[0]=='h':
	print(s[0:4]+'://',end='')
	print(s[4],end='')
	for i in range(5,n-1):
		if s[i]=='r' and s[i+1]=='u':
			break
		else:
			print(s[i],end='')
	print('.'+'ru',end='')
	if i+2!=n :
		print('/'+s[i+2:n])
else:
	print(s[0:3]+'://',end='')
	print(s[3],end='')
	for i in range(4,n-1):
		if s[i]=='r' and s[i+1]=='u':
			break
		else:
			print(s[i],end='')
	print('.'+'ru',end='')
	if i+2!=n :
		print('/'+s[i+2:n])