s = gets case s when "E" then ans = "F" when "B" then ans = "C" else ans = s + "#" end puts ans