from sys import stdin for line in stdin: if line.startswith("S "): print(line[2:], end='')