s = input() l = len(s) x = l % 3 str = '' if l > 3 : for i in range(l) : str += s[i] if (i+1)%3 == x and i+1