while~0:print''.join(reduce(lambda s,(a,b):map({a:b,b:a}.get,s,s),raw_input().split()))