Hide

Problem E
Navigation Nightmare

OOF! The Evil Emperor Burg is planning an attack on the city of Infinadelphia! Luckily, the mighty Space Ranger Fuzz Nightyear happened to be hanging around the solar system and is en route to Infinadelphia to save the day! But first, he needs your help to fix his navigation system.

Burg seems to have hacked Fuzz’s phone and changed all of the route markers to B’s in an attempt to lead him off course! The mission is in your hands now civilian, you need to change all of the B’s into Fuzz’s alien friends so that Fuzz can reach Infinadelphia in time to save the city!

Input

The input contains the input string n, the navigation path.

Output

Output the new navigation path, replacing every evil “B” marker with one of Fuzz’s alien friends, “(ooo)”.

Sample Input 1 Sample Output 1
<--B------B--->
<--(ooo)------(ooo)--->

Please log in to submit a solution to this problem

Log in