Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第三次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: B
Result: Accepted
Time: 119ms
Memory: 21456kB
Author: yujianbo
In contest: 1087

word = map(str,raw_input().strip().split())
n = len(word)

first_Q =''
first_q =''
for i in range(0,n):
    if word[i][0] == 'Q' or word[i][0] == 'q':
        print word[i]