loop do s=gets.chomp break if s=='SS' puts :T end