MAIN8_A - Cout

no tags 

In C++ programming language cout statement is used to print the standard output. For example the statement:

    cout<<"string";

will print string on the screen.

Some of the characters can not be written directly since that will make the statement ambiguous. To resolve this we use '\' before such characters. For example to print " on screen we will write-

    cout<<"\""; 

In this problem we will only deal with following 4 such special characters.

  • <newline> (\n)
  • single quote (')
  • double quote (")
  • backslash (\)

You are given a valid cout statement and you have to find the output of the same.

Input

First line contains T the number of test cases. Each of the following T lines contains a VALID cout statement length of which doesn't exceed 1000.

Output

For each test case print the output from the new line.

Example

Input:
3
cout<<"code";
cout<<"NSIT\nIIITA";
cout<<"\\/\\/\\/\\/";

Output:
code
NSIT
IIITA
\/\/\/\/

hide comments
Karthik: 2011-06-02 05:38:39

maximum number of test cases???


Added by:Mahesh Chandra Sharma
Date:2011-04-20
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:Own problem used for NSIT-IIITA Main contest #8