import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); char[] s = str.toCharArray();
int ABC_SIZE = 26;
int k = in.nextInt();
String str1
= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char[] s1 = str1.toCharArray();
for(int i = 0; i < s.length; i++){
int find = s[i] - 'A';
if(find - k < 0) s[i] = s1[ABC_SIZE - (k - find)];
else s[i] = s1[find-k];
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CiAKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCVN0cmluZyBzdHIgPSBpbi5uZXh0TGluZSgpOwoJCWNoYXJbXSBzID0gc3RyLnRvQ2hhckFycmF5KCk7CgkJaW50IEFCQ19TSVpFID0gMjY7IAoJCWludCBrID0gaW4ubmV4dEludCgpOwoJCVN0cmluZyBzdHIxID0gIkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaIjsKCQljaGFyW10gczEgPSBzdHIxLnRvQ2hhckFycmF5KCk7CgkJZm9yKGludCBpID0gMDsgaSA8IHMubGVuZ3RoOyBpKyspewoJCQlpbnQgZmluZCA9IHNbaV0gLSAnQSc7CgkJCWlmKGZpbmQgLSBrIDwgMCkgc1tpXSA9IHMxW0FCQ19TSVpFIC0gKGsgLSBmaW5kKV07CgkJCWVsc2Ugc1tpXSA9IHMxW2ZpbmQta107CgoJCX0KCVN5c3RlbS5vdXQucHJpbnRsbihzKTsKCX0KfQ==