#include <iostream>
#include <iomanip>
#include <fstream> //for File I/O
#include <math.h>
#include <string>
#include <strings.h>
#include <vector>
#include <stack>
#include <queue>
#include <stdlib.h>
#include <stdio.h>
#include <sstream>

using namespace std;

ifstream IN("DATA4.txt");
ofstream OUT("OUT4.txt");
        
int main ()
{
    freopen ("DATA4.txt", "r", stdin);
    freopen ("OUT4.txt", "w", stdout);
    
for (int b1 = 0; b1 < 5; b1++)
   {

  int a; 
  cin >> a;
 
  if (a == 0)
  {
        cout << "0" <<endl;
     }
     if (a == 1)
  {
        cout << "0" <<endl << "1" << endl;
     }
     if (a == 2)
  {
        cout << "0." <<endl << "12" << endl;
     }
     if (a == 3)
  {
        cout << "03" <<endl << "12" << endl;
     }
       if (a == 4)
  {
        cout << ".4" <<endl << "03" << endl << "12" << endl;
     }
     if (a == 5)
  {
        cout << "54" <<endl << "03" << endl << "12" << endl;
     }
      if (a == 6)
  {
        cout << "654" <<endl << ".03" << endl << ".12" << endl;
     }
      if (a == 7)
  {
        cout << "654" <<endl << "703" << endl << ".12" << endl;
     }
     if (a == 8)
  {
        cout << "654" <<endl << "703" << endl << "812" << endl;
     }
     if (a == 9)
  {
        cout << "654" <<endl << "703" << endl << "812" << endl << "9.." << endl;
     }
     if (a == 10)
  {
        cout << "654" <<endl << "703" << endl << "812" << endl << "910." << endl;
     }
     if (a == 11)
  {
        cout << "654" <<endl << "703" << endl << "812" << endl << "91011" << endl;
     }
     if (a == 12)
  {
        cout << "654." <<endl << "703." << endl << "812." << endl << "9101112" << endl;
     }
       if (a == 13)
  {
        cout << "654." <<endl << "703." << endl << "81213" << endl << "9101112" << endl;
     }
     if (a == 14)
  {
        cout << "654." <<endl << "70314" << endl << "81213" << endl << "9101112" << endl;
     }
      if (a == 15)
  {
        cout << "65415" <<endl << "70314" << endl << "81213" << endl << "9101112" << endl;
     }
     if (a == 16)
  {
        cout << "...16" << endl << "65415" <<endl << "70314" << endl << "81213" << endl << "9101112" << endl;
     }
     if (a == 17)
  {
        cout << "..1716" << endl << "65415" <<endl << "70314" << endl << "81213" << endl << "9101112" << endl;
     }
     if (a == 18)
  {
        cout << ".181716" << endl << "65415" <<endl << "70314" << endl << "81213" << endl << "9101112" << endl;
     }
     if (a == 19)
  {
        cout << "19181716" << endl << "65415" <<endl << "70314" << endl << "81213" << endl << "9101112" << endl;
     }
     if (a == 20)
  {
        cout << "2019181716" << endl << ".65415" <<endl << ".70314" << endl << ".81213" << endl << ".9101112" << endl;
     }
      
    }

     return 0;
}

