2305Repeater

2305   Repeater

题目描述

Xiaoxi wants you to write a program to simulate a repeater.

Given a non-empty string without spaces, if the three characters at the end are "ma?", reply to "En!" (without quotation marks).

 

Otherwise, repeat it.

输入格式:

The first line contains an integer T to denote the number of testcases (T<=200).

Each testcase has only one line contains a string without spaces, the length of the string is no more than 200 characters.

输出格式:

For each testcase, print a string respecting your answer in one line.

输入样例 复制
3
Nihaoma?
Xiexieni!
Hello?
输出样例 复制
En!
Xiexieni!
Hello?

说明

48
91
通过提交
时空限制1000ms/128mb
题目来源
评测方式在线评测
题目类型
难        度