Files
codeforces/cs/474A.cs
T
2023-03-02 20:58:03 +07:00

39 lines
594 B
C#

using System;
namespace problem_474A
{
class Program
{
static void Main(string[] args)
{
string s = "qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
string c = Console.ReadLine();
string ip = Console.ReadLine();
string op = "";
if (c == "R")
{
for (int i = 0; i < ip.Length; i++)
{
int p = s.IndexOf(ip[i]);
if (p != -1)
{
op += s[p - 1];
}
}
}
else
{
for (int i = 0; i < ip.Length; i++)
{
int p = s.IndexOf(ip[i]);
if (p != -1)
{
op += s[p + 1];
}
}
}
Console.WriteLine(op);
}
}
}