https://robocontest.uz/tasks/0259 k = int(input()) % 26
a1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"*2
a2 = "abcdefghijklmnopqrstuvwxyz" * 2
s = input()
ans = ""
for i in range(len(s)):
if s[i] == "_":
ans += "_"
else:
if s[i].isupper():
ans += a1[a1.find(s[i]) + k]
else:
ans += a2[a2.find(s[i]) + k ]
print(ans)
Do‘stlaringizga ulashing.👇👇
Kanalimiz:
👉
@arifmetikauzGuruhimiz:
👉
@arifmetika_chat