# 3、用户输入一个索引和字符,定向改变默认字符串并输出
s = 'fkjava.org'
print(s)
ind = int(input())
ss = input()
s = s.replace(s[ind],ss,1)
print(s)
# 3、用户输入一个索引和字符,定向改变默认字符串并输出
s = 'fkjava.org'
print(s)
ind = int(input())
ss = input()
s = s.replace(s[ind],ss,1)
print(s)