Bomb Boom

0

0 votes
Very-Easy
Problem

Faizan , the cracker loves to crack the bomb in Diwali. But this time authority is not allowing to burn the crackers in campus premises. Therefore faizan and his friend kamal decided to burn crackers secretly and they agreed whenever faizan goes to burn crackers he will message kamal either "bomb" or "boom" in encrypted form (Caesar cipher).

In encrypted form, each character is shifted by a fixed key. As you also want to enjoy Diwali, you are given the text conversation between faizan and kamal and you have to decode whether it is "bomb" or "boom".

Input:
First line of input contains T - Total no. of test cases
Each test case has encoded string of either "bomb" or "boom"

Output:
For each testcase, print the decoded message.

Constraints
1<=T<=105

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

In first test case, each character is shifted right by one.
in second test case, each character is shifted right by two.
In third test case , each character is shifted left by one.

Problem Setter : Arun Nainwal

Editor Image

?