{"raw_statement":[{"iden":"statement","content":"A classroom in a school has six rows with 3 desks in each row. Two people can use the same desk: one sitting on the left and one sitting on the right.\n\nSome places are already occupied, and some places are vacant. Petya has just entered the class and wants to occupy the most convenient place. The conveniences of the places are shown on the picture:\n\n<center>![image](https://espresso.codeforces.com/957886e16d193f6ea2a9cde2366c8671fcffebdd.png)</center>Here, the desks in the top row are the closest to the blackboard, while the desks in the bottom row are the furthest from the blackboard.\n\nYou are given a plan of the class, where '_*_' denotes an occupied place, '_._' denotes a vacant place, and the aisles are denoted by '_\\-_'.\n\nFind any of the most convenient vacant places for Petya."},{"iden":"input","content":"The input consists of 6 lines. Each line describes one row of desks, starting from the closest to the blackboard. Each line is given in the following format: two characters, each is '_*_' or '_._' — the description of the left desk in the current row; a character '_\\-_' — the aisle; two characters, each is '_*_' or '_._' — the description of the center desk in the current row; a character '_\\-_' — the aisle; two characters, each is '_*_' or '_._' — the description of the right desk in the current row. So, the length of each of the six lines is 8.\n\nIt is guaranteed that there is at least one vacant place in the classroom."},{"iden":"output","content":"Print the plan of the classroom after Petya takes one of the most convenient for him places. Mark this place with the letter '_P_'. There should be exactly one letter '_P_' in the plan. Petya can only take a vacant place. In all other places the output should coincide with the input.\n\nIf there are multiple answers, print any."},{"iden":"examples","content":"Input\n\n..-**-..\n..-**-..\n..-..-..\n..-..-..\n..-..-..\n..-..-..\n\nOutput\n\n..-**-..\n..-**-..\n..-..-..\n..-P.-..\n..-..-..\n..-..-..\n\nInput\n\n**-**-**\n**-**-**\n..-**-.*\n**-**-**\n..-..-..\n..-**-..\n\nOutput\n\n**-**-**\n**-**-**\n..-**-.*\n**-**-**\n..-P.-..\n..-**-..\n\nInput\n\n**-**-*.\n*.-*.-**\n**-**-**\n**-**-**\n..-..-..\n..-**-..\n\nOutput\n\n**-**-*.\n*.-*P-**\n**-**-**\n**-**-**\n..-..-..\n..-**-.."},{"iden":"note","content":"In the first example the maximum convenience is 3.\n\nIn the second example the maximum convenience is 2.\n\nIn the third example the maximum convenience is 4."}],"translated_statement":[{"iden":"statement","content":"一间教室有六排，每排有 #cf_span[3] 张课桌。每张课桌可以供两人使用：一人坐左边，一人坐右边。\n\n一些位置已被占用，一些位置是空的。Petya 刚刚进入教室，想要占据最方便的位置。各个位置的便利程度如下图所示：\n\n其中，最上排的课桌离黑板最近，最下排的课桌离黑板最远。\n\n你将获得教室的布局图，其中 '_*_' 表示已被占用的位置，'_._' 表示空位，过道用 '_-_' 表示。\n\n请找出一个对 Petya 来说最方便的空位。\n\n输入包含 #cf_span[6] 行。每行描述一排课桌，从离黑板最近的一排开始。每行的格式如下：两个字符（每个为 '_*_' 或 '_._'）——当前行左侧课桌的描述；一个字符 '_-_' ——过道；两个字符（每个为 '_*_' 或 '_._'）——当前行中间课桌的描述；一个字符 '_-_' ——过道；两个字符（每个为 '_*_' 或 '_._'）——当前行右侧课桌的描述。因此，每行的长度为 #cf_span[8]。\n\n保证教室中至少存在一个空位。\n\n请输出 Petya 占据其中一个最方便空位后的教室布局图。将该位置标记为字母 '_P_'。布局图中必须恰好包含一个 '_P_'。Petya 只能占据空位，其他所有位置的输出应与输入一致。\n\n如果有多个答案，输出任意一个即可。\n\n在第一个示例中，最大便利度为 #cf_span[3]。\n\n在第二个示例中，最大便利度为 #cf_span[2]。\n\n在第三个示例中，最大便利度为 #cf_span[4]。\n\n"},{"iden":"input","content":"输入包含 #cf_span[6] 行。每行描述一排课桌，从离黑板最近的一排开始。每行的格式如下：两个字符（每个为 '_*_' 或 '_._'）——当前行左侧课桌的描述；一个字符 '_-_' ——过道；两个字符（每个为 '_*_' 或 '_._'）——当前行中间课桌的描述；一个字符 '_-_' ——过道；两个字符（每个为 '_*_' 或 '_._'）——当前行右侧课桌的描述。因此，每行的长度为 #cf_span[8]。保证教室中至少存在一个空位。"},{"iden":"output","content":"请输出 Petya 占据其中一个最方便空位后的教室布局图。将该位置标记为字母 '_P_'。布局图中必须恰好包含一个 '_P_'。Petya 只能占据空位，其他所有位置的输出应与输入一致。如果有多个答案，输出任意一个即可。"},{"iden":"examples","content":"输入\n..-**-..\n..-**-..\n..-..-..\n..-..-..\n..-..-..\n..-..-..\n输出\n..-**-..\n..-**-..\n..-..-..\n..-P.-..\n..-..-..\n..-..-..\n输入\n**-**-**\n**-**-**\n..-**-**\n.*-**-**\n..-..-..\n..-**-..\n输出\n**-**-**\n**-**-**\n..-**-**\n.*-**-**\n..-P.-..\n..-**-..\n输入\n**-**-*.\n*.-*.-**\n**-**-**\n**-**-**\n..-..-..\n..-**-..\n输出\n**-**-*.\n*.-*P-**\n**-**-**\n**-**-**\n..-..-..\n..-**-.."},{"iden":"note","content":"在第一个示例中，最大便利度为 #cf_span[3]。在第二个示例中，最大便利度为 #cf_span[2]。在第三个示例中，最大便利度为 #cf_span[4]。"}],"sample_group":[],"show_order":[],"formal_statement":null,"simple_statement":null,"has_page_source":false}