print(''.join(list(map(lambda x: chr((-(ord(x) - 62) + 60)), input()))[::-1]))