提示: 欢迎访问OurACM平台。
Problem 1673 typedef long long LL

Accept: 112    Submit: 197
Time Limit: 1000 mSec    Memory Limit : 32768 KB

Problem Description

Do you know the keyword “typedef” in the language C?
The following are something about the keyword “typedef” in the book “ISO C99 standard”.
A typedef declaration does not introduce a new type, only a synonym for the type so specified. That is, in the following declarations:
typedef T type_ident;
type_ident D;
type_ident is defined as a typedef name with the type specified by the declaration specifiers in T (known as T), and the identifier in D has the type “derived-declarator-type-list T ” where the derived-declarator-type-list is specified by the declarators of D.
A typedef name shares the same name space as other identifiers declared in ordinary declarators.
As we all know, oaiei is the best Cryptologist in the world.
He has invented a new encryption from the keyword “typedef” recently.
The encryption is very simple, oaiei always writes “typedef long long LL”, so when he sends message to other people, he replaces the string “long long” by “LL”.
You should note that we should only replace one such string at a time by the order they appear until there are not such string at all.

Input

There are multiple test cases. For each test case, the first line contains a string S, indicating the message that oaiei wants to send to other people. The length of the string is less than 1000. The message only contains character “A-Z”、”a-z” and space. You should note that the character in the message is case-insensitive.

Output

For each test case, output the encrypted message.

Sample Input

Typedef long long LL Typedef Long lonGong long LL Hello world

Sample Output

Typedef LL LL Typedef LLL LL Hello world

Source

FOJ月赛-2008年12月

Submit  Back  Status  Discuss