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".

Source: codeforces | Difficulty: EASY
Tags: String algorithms

Implementation


Solutions:
s = input()
ans = ''
if s[:3] == 'ftp':
	ans += 'ftp'
	s = s[3:]
else:
	ans += 'http'
	s = s[4:]
ans += '://'
c = s.rindex('ru')
ans += s[:c]
ans += '.ru'
s = s[c + 2:]
if len(s) != 0:
	ans += '/'
	ans += s
print(ans)


X = input()
Result = 'http://' if X[0] == 'h' else 'ftp://'
Result += X[X.index('p') + 1:X.rfind('ru')] + '.ru/'
Result += X[X.rfind('ru') + 2:]
print(Result if Result[-1] != '/' else Result[:-1])


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)


a = input()
if a[:3] == 'ftp':
	print('ftp://', end='')
	a = a[3:]
else:
	print('http://', end='')
	a = a[4:]
a = [x[::-1] for x in a[::-1].split('ur', 1)]
print(a[1], '.ru', sep='', end='')
print('/' + a[0] if a[0] else '')


d = input()
ad = ''
if d[:4] == 'http':
	ad += 'http://'
else:
	ad += 'ftp://'
ad += d[len(ad) - 3:d.rfind('ru')] + '.ru'
if len(ad) != len(d) + 4:
	ad += '/' + d[d.rfind('ru') + 2:]
print(ad)


z = input()
res = ''
if z.startswith('http'):
	res += 'http://'
	z = z[4:]
elif z.startswith('ftp'):
	res += 'ftp://'
	z = z[3:]
pi = z.rfind('ru')
res += z[:pi]
res += '.ru'
if not z.endswith('ru'):
	res += '/' + z[pi + 2:]
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)


try:
	s = input()
	l = []
	c = 0
	x = 0
	for i in range(len(s)):
		if s[i] == 'p' and i <= 3:
			l.append(s[i])
			l.append('://')
		elif s[i] == 'r' and i < len(s) - 1 and (s[i + 1] == 'u') and (c == 0) and (l[-1] != '://'):
			if c == 0:
				l.append('.ru')
				x = 1
				c = i + 1
			if i + 1 < len(s) - 1:
				l.append('/')
		elif s[i] == 'u' and i == c:
			pass
		else:
			l.append(s[i])
	ans = ''.join(l)
	print(ans)
except EOFError:
	pass


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 = input()
ans = ''
if s[0] == 'h':
	ans += s[0:4]
else:
	ans += s[0:3]
x = len(ans)
ans += '://'
for i in range(len(s) - 1):
	if s[i] == 'r' and s[i + 1] == 'u':
		pos = i
ans += s[x:pos]
pos += 2
ans += '.ru'
if len(s[pos:]) != 0:
	ans += '/'
	ans += s[pos:]
print(ans)


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()
s1 = ''
index = 0
th = s.find('http')
tp = s.find('ftp')
if th != -1 and tp != -1:
	if th < tp:
		s1 += 'http' + '://'
		index += 4
	elif th > tp:
		s1 += 'ftp' + '://'
		index += 3
elif th != -1 and tp == -1:
	s1 += 'http' + '://'
	index += 4
elif th == -1 and tp != -1:
	s1 += 'ftp' + '://'
	index += 3
t = s.rfind('ru')
s1 += s[index:t] + '.ru'
index = t + 1
if len(s[index:]) > 1:
	s1 += '/' + s[index + 1:]
print(s1)


s = input()
if s[0] == 'f':
	fs = 'ftp://'
	s = s[3:]
else:
	fs = 'http://'
	s = s[4:]
for i in range(len(s) - 1):
	if s[i] + s[i + 1] == 'ru':
		j = i + 1
fs = fs + s[0:j - 1] + '.ru'
if j != len(s) - 1:
	fs = fs + '/' + s[j + 1:]
print(fs)


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)


import re
text = input()
[protocol, domain, context] = re.match('(http|ftp)(.*)ru(.*)', text).groups()
if context == '':
	print('{0}://{1}.ru'.format(protocol, domain))
else:
	print('{0}://{1}.ru/{2}'.format(protocol, domain, context))


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()
l = len(s)
if 'http' == s[:4]:
	a = 'http'
	prev = '*'
	for i in range(l)[::-1]:
		if prev == 'u' and s[i] == 'r':
			break
		prev = s[i]
	b = s[4:i]
	d = s[i:i + 2]
	e = s[i + 2:]
	if e == '':
		print(a + '://' + b + '.' + d)
	else:
		print(a + '://' + b + '.' + d + '/' + e)
else:
	a = 'ftp'
	prev = '*'
	for i in range(l)[::-1]:
		if prev == 'u' and s[i] == 'r':
			break
		prev = s[i]
	b = s[3:i]
	d = s[i:i + 2]
	e = s[i + 2:]
	if e == '':
		print(a + '://' + b + '.' + d)
	else:
		print(a + '://' + b + '.' + d + '/' + e)


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()
if s[0] == 'h':
	print('http://', end='')
	s = s[4:]
else:
	print('ftp://', end='')
	s = s[3:]
for i in range(len(s) - 2, -1, -1):
	if s[i] + s[i + 1] == 'ru':
		break
print(s[:i], '.ru', sep='', end='')
if s[i + 2:] != '':
	print('/', s[i + 2:], sep='')


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)


import re
address = input()
address = re.sub('(http|ftp)(\\w+?)(ru)', '\\1://\\2.\\3', address)
if re.match('.+?\\.ru(\\w+)', address):
	address = re.sub('\\.ru(\\w+)', '.ru/\\1', address)
print(address)


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


s = input()
for pref in ('http', 'ftp'):
	if s.startswith(pref):
		s = s[len(pref):]
		i = s.rfind('ru')
		end = '/' + s[i + 2:] if i + 2 < len(s) else ''
		print(pref + '://' + s[:i] + '.ru' + end)
		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)


s = input()
n = len(s)
http = False
ftp = False
last = 0
i = 0
answer = ''
while i < n:
	if http or ftp:
		if s[i:i + 2] == 'ru':
			last = i
			i += 2
		else:
			i += 1
	elif s[i:i + 4] == 'http':
		answer += 'http://'
		http = True
		i += 4
	elif s[i:i + 3] == 'ftp':
		answer += 'ftp://'
		ftp = True
		i += 3
if http:
	answer += s[4:last] + '.ru'
	if s[last + 2:]:
		answer += '/' + s[last + 2:]
else:
	answer += s[3:last] + '.ru'
	if s[last + 2:]:
		answer += '/' + s[last + 2:]
print(answer)


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()
(pl, rui) = (4 if s[0] == 'h' else 3, s.rfind('ru'))
print(s[:pl] + '://' + s[pl:rui] + '.ru' + ('/' + s[rui + 2:] if rui < len(s) - 2 else ''))


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)


import re
s = input()
L = re.findall('(http|ftp)([a-z]+ru)([a-z]*)', s)[0]
print(L[0], '://', L[1][:len(L[1]) - 2], '.ru', sep='', end='')
if L[2]:
	print('/', L[2], sep='')


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)


s = input()
res = ''
if s.startswith('http'):
	res += 'http://'
	s = s[4:]
else:
	res += 'ftp://'
	s = s[3:]
i = s.rfind('ru')
res += s[:i] + '.ru'
s = s[i + 2:]
if len(s) != 0:
	res += '/' + s
print(res)


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)


t = input()
u = []
for j in range(len(t) - 1):
	if t[j] == 'r' and t[j + 1] == 'u':
		u.append(j)
if t[:4] == 'http' in t:
	if len(u) == 1:
		y = u[0]
	else:
		y = u[1]
	a = 'http://' + t[t.index('p') + 1:y] + '.ru'
	if len(t[y + 2:]) > 0:
		print(a + '/' + t[y + 2:])
	else:
		print(a)
elif t[:3] == 'ftp':
	if len(u) == 1:
		y = u[0]
	else:
		y = u[1]
	a = 'ftp://' + t[t.index('p') + 1:y] + '.ru'
	if len(t[y + 2:]) > 0:
		print(a + '/' + t[y + 2:])
	else:
		print(a)


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)


s = input()
if s[:3] == 'ftp':
	if s[-2:] == 'ru':
		print(s[:3] + '://' + s[3:-2] + '.ru')
	else:
		print(s[:3] + '://' + s[3:s.find('ru', 4)] + '.ru/' + s[s.find('ru', 4) + 2:])
elif s[-2:] == 'ru':
	print(s[:4] + '://' + s[4:-2] + '.ru')
else:
	print(s[:4] + '://' + s[4:s.find('ru', 5)] + '.ru/' + s[s.find('ru', 5) + 2:])


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


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)


def puts(s):
	print(s, end='')
s = input()
if s.startswith('http'):
	puts('http://')
	s = s[4:]
else:
	puts('ftp://')
	s = s[3:]
i = s.rfind('ru')
domen = s[:i]
puts(domen + '.ru')
if domen + 'ru' != s:
	puts('/' + s[i + 2:])
print()


s = input()
t = []
k = ''
for i in range(len(s) - 1):
	if s[i] == 'r' and s[i + 1] == 'u':
		t.append(i)
if 'http' in s[0:5]:
	k += 'http://'
	if len(t) > 2:
		k += s[4:t[1]]
		k += '.'
		k += 'ru/'
		k += s[t[1] + 2:len(s)]
	else:
		k += s[4:t[0]]
		k += '.'
		if t[0] == len(s) - 2:
			k += 'ru'
		else:
			k += 'ru/'
		k += s[t[0] + 2:len(s)]
if 'ftp' in s[0:3]:
	k += 'ftp://'
	if len(t) > 2:
		k += s[3:t[1]]
		k += '.'
		k += 'ru/'
		k += s[t[1] + 2:len(s)]
	else:
		k += s[3:t[0]]
		k += '.'
		if t[0] == len(s) - 2:
			k += 'ru'
		else:
			k += 'ru/'
		k += s[t[0] + 2:len(s)]
print(k)


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)


print('/'.join(input().rpartition('ru')).replace('/', '.', 1).replace('tp', 'tp://', 1).rstrip('/'))


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)


import os
import sys
from io import BytesIO, IOBase

def main():
	s = input().rstrip()
	ans = []
	n = len(s)
	if s[0] == 'h':
		ans.append('http://')
		i = n - 1
		while i > 4:
			if s[i] == 'u' and s[i - 1] == 'r':
				i -= 1
				break
			i -= 1
		ans.append(s[4:i])
		ans.append('.')
		ans.append('ru')
		ans.append('/')
		ans.append(s[i + 2:])
	else:
		ans.append('ftp://')
		i = n - 1
		while i > 3:
			if s[i] == 'u' and s[i - 1] == 'r':
				i -= 1
				break
			i -= 1
		ans.append(s[3:i])
		ans.append('.')
		ans.append('ru')
		ans.append('/')
		ans.append(s[i + 2:])
	if ans[-1] == '':
		ans.pop()
		ans.pop()
	print(''.join(ans))
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()