Dear Programmers: I can imagine how surprised you are when you receive this strange etter. Well, be patient, I am going to talk about some really exciting things that you must be interested in. First of all, I have to congratulate everyone of you - the gifted programmers, for you are so lucky to have a God-given chance to be my inheritor - a new Deity of Stars. However, you know that it is difficult for an ordinary person to become a deity, so only the best one among you can finally be chosen. Therefore, you are facing a hard test for estimating your abilities. Try your best to compete! The Deity of Stars, of course, is the unique dominator of all stars in the whole universe, which means controlling the stars’ tracks and ensuring that the stars move in their own orbit are his/her most important responsibilities. What? You will be sick in managing incalculable stars? Don’t worry, it will be a piece of cake once you have a wonderful tool - a special kind of programming language. That is why I am going to choose my inheritor from you. So in your test, you will be given a special program and the initial positions of some stars (In deities’ eyes, the stars are so small that they can be regarded as points), you need to figure out the new positions of these stars after the program is executed. Considering all of you are green hands, I will just give you a program in a simple version during the test, which contains only several kinds of instructions listed below:
2/2 Two consecutive cases are separated by a blank line. The input ends with n = 0. Output For each test case, print n lines, each line contains three float numbers indicating the new position of a point. Please round the results to two digits after decimal point. You should print the n points in the same order as in input. Print a blank line after each test case. Sample Input 2 rotate 1.0 1.0 1.0 90.0 translate 2.0 2.0 2.0 end 1.0 1.0 1.0 1.0 0.0 0.0 3 repeat 100 translate 2.7 -0.2 1.1 translate -2.6 0.0 -1.0 end scale 1.0 0.0 0.5 end 0.5 2.7 1.1 0.22 0 7.0 1.2 3.4 5.6 0 Sample Output 3.00 3.00 3.00 2.33 2.91 1.76 10.50 0.00 5.55 10.22 0.00 8.50 11.20 0.00 7.80