n = input() s = input()[1: -1] print(s)