Jessie has a magic mirror.

Every morning she will ask the mirror: 'Mirror mirror tell me, who is the most beautiful girl in the world?' If the mirror says her name, she will praise the mirror: 'Good guy!', but if the mirror says the name of another person, she will assail the mirror: 'Dare you say that again?'

Today Jessie asks the mirror the same question above, and you are given a series of mirror's answers. For each answer, please output Jessie's response. You can assume that the uppercase or lowercase letters appearing anywhere in the name will have no influence on the answer. For example, 'Jessie' and 'jessie' represent the same person.

Input

The first line contains an integer T(1 \le T \le 100)T(1≤T≤100), which is the number of test cases.

Each test case contains one line with a single-word name, which contains only English letters. The length of each name is no more than 1515.

Output

For each test case, output one line containing the answer.

样例输入复制

2
Jessie
Justin

样例输出复制

Good guy!
Dare you say that again?

题目来源

ACM-ICPC 2018 焦作赛区网络预赛

签到题:

 #include<bits/stdc++.h>
using namespace std;
#define mem(a,b) memset(a,b,sizeof a)
#define eps 1e-8
#define PI acos(-1.0)
typedef long long LL;
typedef pair<int,int> P;
const int INF=0x3f3f3f3f;
int T;
string s; int main()
{
scanf("%d",&T);
while(T--)//Jessie
{
cin>>s;
int len=s.length();
if(len==)
{
for(int i=;i<;i++) if(s[i]>='A'&&s[i]<='Z') s[i]=s[i]+;
if(s=="jessie") puts("Good guy!");
else puts("Dare you say that again?");
}
else puts("Dare you say that again?");
} return ;
}

  

最新文章

  1. MySql中in和exists效率
  2. wmware 怎么 跟主机相互通信
  3. iOS文件解压&amp;&amp;数据加密
  4. SortedMap接口
  5. 编译busybox-1.24.1 制作文件系统
  6. Spring+Struts集成(方案一)
  7. Sql Server的艺术(四) SQL多表查询
  8. C#设计模式&mdash;&mdash;单例模式的实现
  9. 解决windows server在关闭远程桌面后开启的服务也随之关闭的问题
  10. javascript:正则表达式、一个表单验证的例子
  11. Linux内存带宽的一些测试笔记【转】
  12. Js/使用js来改变css的样式
  13. 背水一战 Windows 10 (65) - 控件(WebView): 对 WebView 中的内容截图, 通过 Share Contract 分享 WebView 中的被选中的内容
  14. 浅谈java反射机制
  15. 007.基于Docker的Etcd分布式部署
  16. 最好的ie版本检测方式
  17. MySQL参数文件及参数修改方法
  18. 2018/03/22 每日一个Linux命令 之 grep
  19. phpmyadmin登录提示2005错误
  20. 一个非常好用的图片切割工具(c# winform开发)

热门文章

  1. python3 控制安卓手机的飞行模式遇到的问题汇总
  2. 并发编程-硬件加持的CAS操作够快么?
  3. 【前端知识体系-CSS相关】CSS预处理器
  4. elementui分页记录,reserve-selection
  5. 配置k8s集群context-rbac实践
  6. htm&amp;css 颜色的浮动
  7. 和SharpDX坑爹的Variant刚正面
  8. “word无法创建工作文件,请检查临时环境变量”的解决办法
  9. CentOS 7 ETCD集群配置大全
  10. CCNA 之 七 路由协议 三 OSPF