import core.bitop;
import std.algorithm;
import std.array;
import std.container;
import std.conv;
import std.exception;
import std.functional;
import std.math;
import std.numeric;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main ()
{
	string s;
	while ((s = readln.strip) != "")
	{
		string a = ".";
		string b = ".";
		ubyte cur = 0;
		foreach (c; s.representation)
		{
			while (c != cur)
			{
				cur -= 1;
				a ~= "X.";
				b ~= "..";
			}
			a ~= ".X..";
			b ~= "XXX.";
		}
		writeln (a);
		writeln (b);
	}
}
