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: EASY

Solutions:
from re import finditer
s = input().strip()
res = ''
if s.startswith('http'):
	res += 'http'
	s = s[4:]
else:
	res += 'ftp'
	s = s[3:]
i = -1
for m in finditer('ru', s):
	if m.start() == 0:
		continue
	i = m.start()
	break
if i != len(s) - 2:
	res += '://{}.ru/{}'.format(s[:i], s[i + 2:])
else:
	res += '://{}.ru'.format(s[:i])
print(res)


s = input()
n = len(s)
if s.startswith('ftp'):
	ans = 'ftp://'
	f = 0
	i = 3
	while i < n:
		if ans[i - 1 + 3] != '/' and f == 0 and (i + 1 < n) and (s[i] == 'r') and (s[i + 1] == 'u'):
			ans += '.ru'
			i += 1
			f = 1
			if i < n - 1:
				ans += '/'
		else:
			ans += s[i]
		i += 1
else:
	ans = 'http://'
	f = 0
	i = 4
	while i < n:
		if ans[i - 1 + 3] != '/' and f == 0 and (i + 1 < n) and (s[i] == 'r') and (s[i + 1] == 'u'):
			ans += '.ru'
			i += 1
			f = 1
			if i < n - 1:
				ans += '/'
		else:
			ans += s[i]
		i += 1
print(ans)


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


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


s = input()
if s[0] == 'h':
	prefix = 'http://'
	http = True
else:
	prefix = 'ftp://'
	http = False
if http:
	s = s[4:]
else:
	s = s[3:]
path = s[0]
s = s[1:].replace('ru', '.ru/', 1)
if s[-1] == '/':
	sufix = s[:-1]
else:
	sufix = s
print(prefix + path + sufix)


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()


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()
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()
sfinal = ''
flag = False
if s[0] == 'h':
	sfinal += 'http://'
	for i in range(4, len(s)):
		if flag and i != len(s) - 1:
			sfinal += '/'
			sfinal += s[i + 1:len(s)]
			break
		if s[i] == 'r' and s[i + 1] == 'u' and (i != 4):
			sfinal += s[4:i]
			sfinal += '.ru'
			flag = True
elif s[0] == 'f':
	sfinal += 'ftp://'
	for i in range(3, len(s)):
		if flag and i != len(s) - 1:
			sfinal += '/'
			sfinal += s[i + 1:len(s)]
			break
		if s[i] == 'r' and s[i + 1] == 'u' and (i != 3):
			sfinal += s[3:i]
			sfinal += '.ru'
			flag = True
print(sfinal)


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)


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)


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().strip()
flag = 0
if s[0] == 'f':
	flag = 1
ind = s.find('ru')
if flag == 1 and ind == 3 or (flag == 0 and ind == 4):
	ind = s[ind + 2:].find('ru') + ind + 2
if flag == 1:
	print(s[:3] + '://' + s[3:ind] + '.' + s[ind:ind + 2] + ('/' + s[ind + 2:] if len(s) > ind + 2 else ''))
else:
	print(s[:4] + '://' + s[4:ind] + '.' + s[ind:ind + 2] + ('/' + s[ind + 2:] if len(s) > ind + 2 else ''))


txt = input('')
j = 0
i = 0
if txt[0] == 'f':
	j = 3
	print(txt[:j], end='')
	print('://', end='')
elif txt[0] == 'h':
	j = 4
	print(txt[:j], end='')
	print('://', end='')
i = txt.find('ru', j + 1)
print(txt[j:i], end='')
print('.', end='')
if len(txt[i + 2:]) > 0:
	print(txt[i:i + 2], end='')
	print('/', end='')
	print(txt[i + 2:])
else:
	print(txt[i:i + 2])


s = input()
pr = 4 if s.startswith('http') else 3
res = s[:pr] + '://'
ru = s[pr + 1:].index('ru')
res = res + s[pr:pr + 1 + ru] + '.ru'
if len(res) - 4 < len(s):
	res += '/' + s[pr + ru + 3:]
print(res)


s = input()
s1 = s[:s.index('p') + 1] + '://'
for i in range(len(s)):
	if len(s[s.index('p'):s.index('ru', i)]) - 1 == 0:
		continue
	else:
		s1 += s[s.index('p') + 1:s.index('ru', i)] + '.' + 'ru'
		if len(s[s.index('ru', i) + 2:]) != 0:
			s1 += '/' + s[s.index('ru', i) + 2:]
		break
print(s1)


import os
import sys
import math
import heapq
from decimal import *
from io import BytesIO, IOBase
from collections import defaultdict, deque

def r():
	return int(input())

def rm():
	return map(int, input().split())

def rl():
	return list(map(int, input().split()))
s = input()
if s[0] == 'h':
	protocol = 'http'
	s = s[4:]
else:
	protocol = 'ftp'
	s = s[3:]
(domain, context) = s.split('ru', maxsplit=1)
if len(domain) == 0:
	(domain, context) = context.split('ru', maxsplit=1)
	domain = 'ru' + domain
print(protocol, '://', domain, '.ru', '' if len(context) == 0 else '/' + context, sep='')


class CodeforcesTask245BSolution:

	def __init__(self):
		self.result = ''
		self.adress = ''

	def read_input(self):
		self.adress = input()

	def process_task(self):
		result = ''
		if len(self.adress.split('ftp')[0]):
			result = 'http://' + self.adress.split('http', 1)[1]
		else:
			result = 'ftp://' + self.adress.split('ftp', 1)[1]
		result = result.replace('//ru', '$$$$').replace('ru', '.ru/', 1).replace('$$$$', '//ru')
		if result[-1] == '/':
			result = result[:-1]
		self.result = result

	def get_result(self):
		return self.result
Solution = CodeforcesTask245BSolution()
Solution.read_input()
Solution.process_task()
print(Solution.get_result())


s = input()
if s.startswith('http'):
	s = s.replace('http', 'http://', 1)
else:
	s = s.replace('ftp', 'ftp://', 1)
ind = s.index('ru')
if s[ind:] == 'ru':
	s = s.replace('ru', '.ru')
elif '//ru' not in s:
	s = s.replace('ru', '.ru/', 1)
else:
	s = s.replace('//ru', '~~', 1)
	s = s.replace('ru', '.ru/', 1)
	s = s.replace('~~', '//ru', 1)
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()
j = 3
if s[0] == 'h':
	j = 4
i = j
k = 0
while i < len(s):
	if k > 0 and s[i] == 'r' and (s[i + 1] == 'u'):
		break
	i += 1
	k = 1
if i + 2 == len(s):
	print(s[:j] + '://' + s[j:i] + '.ru')
else:
	print(s[:j] + '://' + s[j:i] + '.ru/' + s[i + 2:])


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)


l = list(input())
j = 0
if l[j] == 'h':
	print('http://', end='')
	j += 4
else:
	print('ftp://', end='')
	j += 3
t = ''
e = 0
while j < len(l) and e != 1:
	if t != '' and l[j] == 'r' and (l[j + 1] == 'u'):
		j += 2
		t += '.'
		e = 1
		print(t, end='')
		print('ru', end='')
		t = '/'
	else:
		t += l[j]
		j += 1
if j < len(l):
	while j < len(l):
		t += l[j]
		j += 1
	print(t)


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)


n = list(input())
if n[0] == 'f':
	for i in range(len(n)):
		if n[i] == 'r' and n[i + 1] == 'u':
			if i + 1 != len(n) - 1 and i != 3:
				print('ftp://', *n[3:i], '.', *n[i:i + 2], '/', *n[i + 2:], sep='')
				break
			elif i != 3:
				print('ftp://', *n[3:i], '.', *n[i:i + 2], sep='')
				break
else:
	for i in range(len(n)):
		if n[i] == 'r' and n[i + 1] == 'u' and (i != 4):
			if i + 1 != len(n) - 1:
				print('http://', *n[4:i], '.', *n[i:i + 2], '/', *n[i + 2:], sep='')
				break
			elif i != 4:
				print('http://', *n[4:i], '.', *n[i:i + 2], sep='')
				break


line = input()
count = 0
if line[0:4] == 'http':
	for i in range(5, len(line) - 1):
		if line[i:i + 2] == 'ru':
			count = i
			break
	if count == len(line) - 2:
		print('http://' + line[4:i] + '.ru')
	else:
		print('http://' + line[4:i] + '.ru/' + line[i + 2:])
else:
	for i in range(4, len(line) - 1):
		if line[i:i + 2] == 'ru':
			count = i
			break
	if count == len(line) - 2:
		print('ftp://' + line[3:i] + '.ru')
	else:
		print('ftp://' + line[3:i] + '.ru/' + line[i + 2:])


text = input()
url = ''
if text[0] == 'h':
	url = 'http://'
	flag = 4
else:
	url = 'ftp://'
	flag = 3
i = flag
while text[i] + text[i + 1] != 'ru':
	url += text[i]
	i += 1
if i == flag:
	url += text[i] + text[i + 1]
	i += 2
	while text[i] + text[i + 1] != 'ru':
		url += text[i]
		i += 1
i += 2
url += '.ru'
if i != len(text):
	url += '/' + text[i:]
print(url)


resource = input()
n = len(resource)
curr = 0
res = ''
if resource[0] == 'h':
	res += 'http://'
	curr = 4
else:
	res += 'ftp://'
	curr = 3
dom = ''
while resource[curr:curr + 2] != 'ru':
	dom += resource[curr]
	curr += 1
if dom == '':
	dom += resource[curr]
	curr += 1
	while resource[curr:curr + 2] != 'ru':
		dom += resource[curr]
		curr += 1
res += dom + '.ru'
rem = resource[curr + 2:]
if rem != '':
	rem = '/' + rem
res += rem
print(res)


x = input()
s = ''
if 'ftp' in x:
	if x.index('ftp') == 0:
		s = 'ftp://'
		x = x[3:]
	else:
		s = 'http://'
		x = x[4:]
else:
	s = 'http://'
	x = x[4:]
index = x.index('ru')
if index == 0:
	x = x[2:]
	index = x.index('ru')
	s += 'ru' + x[:index] + '.ru'
else:
	s += x[:index] + '.ru'
if x[index + 2:] != '':
	s += '/' + x[index + 2:]
print(s)


s = input()
ans = ''
if s.startswith('http'):
	s = s[4:]
	ans = 'http://'
else:
	ans = 'ftp://'
	s = s[3:]
if s.count('ru') > 1 and s.index('ru') == 0:
	x = s[1:].index('ru') + 1
else:
	x = s.index('ru')
ans += s[:x] + '.' + 'ru'
s = s[x + 2:]
if s:
	ans += '/' + s
print(ans)


s = input()
if s[0] == 'h':
	s1 = s[:4] + '://'
	s2 = ''
	s = s[4:]
	if s[0] == 'r' and s[1] == 'u':
		s1 = s1 + s[0] + s[1]
		s = s[2:]
		for i in range(len(s)):
			if s[i] == 'r' and s[i + 1] == 'u':
				sm = s[:i]
				s1 = s1 + sm + '.ru'
				s2 = s2 + s[i + 2:]
				break
		if len(s2) > 0:
			ans = s1 + '/' + s2
		else:
			ans = s1 + s2
		print(ans)
	else:
		for i in range(len(s)):
			if s[i] == 'r' and s[i + 1] == 'u':
				sm = s[:i]
				s1 = s1 + sm + '.ru'
				s2 = s2 + s[i + 2:]
				break
		if len(s2) > 0:
			ans = s1 + '/' + s2
		else:
			ans = s1 + s2
		print(ans)
elif s[0] == 'f':
	s1 = s[:3] + '://'
	s2 = ''
	s = s[3:]
	if s[0] == 'r' and s[1] == 'u':
		s1 = s1 + s[0] + s[1]
		s = s[2:]
		for i in range(len(s)):
			if s[i] == 'r' and s[i + 1] == 'u':
				sm = s[:i]
				s1 = s1 + sm + '.ru'
				s2 = s2 + s[i + 2:]
				break
		if len(s2) > 0:
			ans = s1 + '/' + s2
		else:
			ans = s1 + s2
		print(ans)
	else:
		for i in range(len(s)):
			if s[i] == 'r' and s[i + 1] == 'u':
				sm = s[:i]
				s1 = s1 + sm + '.ru'
				s2 = s2 + s[i + 2:]
				break
		if len(s2) > 0:
			ans = s1 + '/' + s2
		else:
			ans = s1 + s2
		print(ans)


s = input()
if s[:4] == 'http':
	ans = 'http://'
	b = 4
else:
	ans = 'ftp://'
	b = 3
for a in range(b + 1, len(s)):
	if s[a] == 'r' and s[a + 1] == 'u':
		ans += s[b:a]
		ans += '.'
		ans += 'ru'
		break
if a + 1 == len(s) - 1:
	print(ans)
else:
	ans += '/'
	ans += s[a + 2:]
	print(ans)


s = input()
new = []
i = 0
if s[0] == 'h':
	i += 4
	new.append('http')
else:
	i += 3
	new.append('ftp')
new.append('://')
temp = ''
for i in range(i, len(s)):
	if s[i] == 'r' and s[i + 1] == 'u' and temp:
		i += 2
		break
	temp += s[i]
new.append(temp + '.')
new.append('ru')
if i != len(s):
	new[-1] = new[-1] + '/'
	new.append(s[i:])
print(''.join(new))


S = input()
ans = ''
ind = 0
if S[0] == 'f':
	ans += 'ftp://' + S[3]
	ind = 4
else:
	ans += 'http://' + S[4]
	ind = 5
while True:
	if S[ind:ind + 2] == 'ru':
		ans += '.ru/' + S[ind + 2:]
		break
	ans += S[ind]
	ind += 1
if ans[-1] == '/':
	print(ans[:-1])
else:
	print(ans)


string = input()
if string.startswith('http'):
	protocol = string[:4]
	string = string[4:]
else:
	protocol = string[:3]
	string = string[3:]
domain_end = string.find('ru', 1)
domain_name = string[:domain_end]
context = string[domain_end + 2:]
result = protocol + '://' + domain_name + '.ru'
if len(context) > 0:
	result += '/' + context
print(result)


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])


n = input()
x = ''
if n[0] == 'h':
	x += 'http://'
	z = n.index('ru')
	if z != 4:
		x += n[4:z]
		x += '.ru/'
		x += n[z + 2:]
	else:
		h = n[6:].index('ru') + 6
		for i in range(4, h):
			x += n[i]
		x += '.ru'
		x += '/' + n[h + 2:]
else:
	x += 'ftp://'
	z = n.index('ru')
	if z != 3:
		x += n[3:z]
		x += '.ru/'
		x += n[z + 2:]
	else:
		h = n[6:].index('ru') + 6
		for i in range(3, h):
			x += n[i]
		x += '.ru'
		x += '/' + n[h + 2:]
if x[-1] == '/':
	x = x[:-1]
print(x)


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)


import re
s = input().strip()
pattern1 = re.compile('http[a-z]+?ru')
pattern2 = re.compile('ftp[a-z]+?ru')
if pattern1.match(s) != None:
	end = pattern1.match(s).span()[1]
	if end != len(s):
		print('http://' + s[4:end - 2] + '.ru/' + s[end:])
	else:
		print('http://' + s[4:end - 2] + '.ru')
if pattern2.match(s) != None:
	end = pattern2.match(s).span()[1]
	if end != len(s):
		print('ftp://' + s[3:end - 2] + '.ru/' + s[end:])
	else:
		print('ftp://' + s[3:end - 2] + '.ru')


s = str(input())
ans = ''
check = False
check2 = False
for i in range(len(s)):
	if s[i] == 'p' and (not check):
		ans += 'p://'
		check = True
		continue
	if s[i - 1] == 'r' and s[i] == 'u' and (not check2) and (ans[-2] != '/'):
		if i != len(s) - 1:
			ans = ans[:-1] + '.ru/'
		else:
			ans = ans[:-1] + '.ru'
		check2 = True
		continue
	ans += s[i]
print(ans)


t = input()
for i in range(len(t) - 1):
	if t[i] + t[i + 1] == 'ru':
		if t[:i] == 'ftp' or t[:i] == 'http':
			continue
		else:
			break
if t[:3] == 'ftp':
	ans = 'ftp:' + '//' + t[3:i] + '.' + 'ru'
elif t[:4] == 'http':
	ans = 'http:' + '//' + t[4:i] + '.' + 'ru'
if t[i + 2:]:
	ans = ans + '/' + t[i + 2:]
print(ans)


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)


a = input()
r = ''
flag = 0
flag2 = 0
for i in range(len(a)):
	r += a[i]
	if r == 'ftp':
		r += '://'
	elif r == 'http':
		r += '://'
	elif a[i + 1:i + 3] == 'ru' and flag == 0:
		r += '.'
		flag = 1
		if i == len(a) - 3:
			flag2 = 1
	elif flag == 1 and flag2 == 0:
		flag += 1
	elif flag == 2 and flag2 == 0:
		r += '/'
		flag = 3
print(r)


res = ''
s = input()
if s[:4] == 'http':
	res += s[:4]
	s = s[4:]
elif s[:3] == 'ftp':
	res += s[:3]
	s = s[3:]
res += '://'
pos = 0
for i in range(1, len(s)):
	pos = i
	if s[i:i + 2] == 'ru':
		break
res += s[:pos] + '.ru'
s = s[pos + 2:]
if len(s) > 0:
	res += '/' + s
print(res)