[TASK]:
You will be given lines of pseudocode, your task is to write the corresponding C++ code. The pseudocode will provide detailed description of the c++ code line by line. The pseudocode is garanteed to be correct and complete.

[INSTRUCTION]:
The following libraries are already included in the code.
```cpp
#include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <cstring>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <fstream>
#include <climits>
#include <cassert>
#include <iomanip>
#include <sstream>
#include <bitset>
using namespace std;
```
Do not include them in your code again. Please surround your code with ```cpp and ``` markers. Note that the code should correspond to the pseudocode line by line.

[PSEUDOCODE]:
define the main function
    let p be an int
    read p
    if p is equal to 0
        print +------------------------+
        print |#.#.#.#.#.#.#.#.#.#.#.|D|)
        print |#.#.#.#.#.#.#.#.#.#.#.|.|
        print |#.......................|
        print |#.#.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 1
        print +------------------------+ and a newline
        print |O.#.#.#.#.#.#.#.#.#.#.|D|) and a newline
        print |#.#.#.#.#.#.#.#.#.#.#.|.| and a newline
        print |#.......................|
        print |#.#.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 2
        print +------------------------+
        print |O.#.#.#.#.#.#.#.#.#.#.|D|) and a newline
        print |O.#.#.#.#.#.#.#.#.#.#.|.|
        print |#.......................|
        print |#.#.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+ and a newline
    end of the block
    if p is equal to 3
        print +------------------------+
        print |O.#.#.#.#.#.#.#.#.#.#.|D|)
        print |O.#.#.#.#.#.#.#.#.#.#.|.| and a newline
        print |O.......................| and a newline
        print |#.#.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 4
        print +------------------------+
        print |O.#.#.#.#.#.#.#.#.#.#.|D|)
        print |O.#.#.#.#.#.#.#.#.#.#.|.| and a newline
        print |O.......................|
        print |O.#.#.#.#.#.#.#.#.#.#.|.|) and a newline
        print +------------------------+
    end of the block
    if p is equal to 5
        print +------------------------+
        print |O.O.#.#.#.#.#.#.#.#.#.|D|)
        print |O.#.#.#.#.#.#.#.#.#.#.|.|
        print |O.......................| and a newline
        print |O.#.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+ and a newline
    end of the block
    if p is 6
        print +------------------------+
        print |O.O.#.#.#.#.#.#.#.#.#.|D|)
        print |O.O.#.#.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.#.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 7
        print +------------------------+
        print |O.O.#.#.#.#.#.#.#.#.#.|D|)
        print |O.O.#.#.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 8
        print +------------------------+
        print |O.O.O.#.#.#.#.#.#.#.#.|D|)
        print |O.O.#.#.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 9
        print +------------------------+
        print |O.O.O.#.#.#.#.#.#.#.#.|D|)
        print |O.O.O.#.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.#.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 10
        print +------------------------+
        print |O.O.O.#.#.#.#.#.#.#.#.|D|)
        print |O.O.O.#.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 11
        print +------------------------+
        print |O.O.O.O.#.#.#.#.#.#.#.|D|)
        print |O.O.O.#.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.#.#.#.#.#.#.#.#.|.|) and a newline
        print +------------------------+
    end of the block
    if p is 12
        print +------------------------+
        print |O.O.O.O.#.#.#.#.#.#.#.|D|)
        print |O.O.O.O.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.#.#.#.#.#.#.#.#.|.|)
        print +------------------------+ and a newline
    end of the block
    if p is 13
        print +------------------------+
        print |O.O.O.O.#.#.#.#.#.#.#.|D|)
        print |O.O.O.O.#.#.#.#.#.#.#.|.| and a newline
        print |O.......................|
        print |O.O.O.O.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 14
        print +------------------------+
        print |O.O.O.O.O.#.#.#.#.#.#.|D|)
        print |O.O.O.O.#.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 15
        print +------------------------+ and a newline
        print |O.O.O.O.O.#.#.#.#.#.#.|D|)
        print |O.O.O.O.O.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.#.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 16
        print +------------------------+
        print |O.O.O.O.O.#.#.#.#.#.#.|D|)
        print |O.O.O.O.O.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 17
        print +------------------------+ and a newline
        print |O.O.O.O.O.O.#.#.#.#.#.|D|)
        print |O.O.O.O.O.#.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 18
        print +------------------------+
        print |O.O.O.O.O.O.#.#.#.#.#.|D|)
        print |O.O.O.O.O.O.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.#.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 19
        print +------------------------+
        print |O.O.O.O.O.O.#.#.#.#.#.|D|)
        print |O.O.O.O.O.O.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 20
        print +------------------------+
        print |O.O.O.O.O.O.O.#.#.#.#.|D|)
        print |O.O.O.O.O.O.#.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 21
        print +------------------------+
        print |O.O.O.O.O.O.O.#.#.#.#.|D|)
        print |O.O.O.O.O.O.O.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.#.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 22
        print +------------------------+
        print |O.O.O.O.O.O.O.#.#.#.#.|D|)
        print |O.O.O.O.O.O.O.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 23
        print +------------------------+
        print |O.O.O.O.O.O.O.O.#.#.#.|D|)
        print |O.O.O.O.O.O.O.#.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 24
        print +------------------------+
        print |O.O.O.O.O.O.O.O.#.#.#.|D|)
        print |O.O.O.O.O.O.O.O.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.#.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 25
        print +------------------------+
        print |O.O.O.O.O.O.O.O.#.#.#.|D|)
        print |O.O.O.O.O.O.O.O.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 26
        print +------------------------+ and a newline
        print |O.O.O.O.O.O.O.O.O.#.#.|D|)
        print |O.O.O.O.O.O.O.O.#.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 27
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.#.#.|D|)
        print |O.O.O.O.O.O.O.O.O.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.#.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 28
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.#.#.|D|)
        print |O.O.O.O.O.O.O.O.O.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 29
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.O.#.|D|)
        print |O.O.O.O.O.O.O.O.O.#.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.#.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 30
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.O.#.|D|)
        print |O.O.O.O.O.O.O.O.O.O.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.#.#.|.|)
        print +------------------------+
    end of the block
    if p is 31
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.O.#.|D|)
        print |O.O.O.O.O.O.O.O.O.O.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.O.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 32
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.O.O.|D|)
        print |O.O.O.O.O.O.O.O.O.O.#.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.O.#.|.|)
        print +------------------------+
    end of the block
    if p is 33
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.O.O.|D|)
        print |O.O.O.O.O.O.O.O.O.O.O.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.O.#.|.|)
        print +------------------------+
    end of the block
    if p is equal to 34
        print +------------------------+
        print |O.O.O.O.O.O.O.O.O.O.O.|D|)
        print |O.O.O.O.O.O.O.O.O.O.O.|.|
        print |O.......................|
        print |O.O.O.O.O.O.O.O.O.O.O.|.|)
        print +------------------------+
    end of the block
    return to indicate successful execution
end of the block

[CODE]:

int main() {
    int p;
    cin >> p;
    if (p == 0) {
        cout << "+------------------------+" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|#.......................|" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 1) {
        cout << "+------------------------+" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|#.......................|" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 2) {
        cout << "+------------------------+" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|#.......................|" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 3) {
        cout << "+------------------------+" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|#.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 4) {
        cout << "+------------------------+" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 5) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 6) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.#.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 7) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 8) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 9) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.#.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 10) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 11) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 12) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.#.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 13) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 14) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 15) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.#.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 16) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 17) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 18) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.#.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 19) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 20) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 21) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.#.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 22) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 23) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 24) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.#.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 25) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 26) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 27) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.#.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 28) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 29) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 30) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.#.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 31) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 32) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.O.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 33) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.O.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.O.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.#.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    if (p == 34) {
        cout << "+------------------------+" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.O.|D|)" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.O.|.|" << endl;
        cout << "|O.......................|" << endl;
        cout << "|O.O.O.O.O.O.O.O.O.O.O.|.|)" << endl;
        cout << "+------------------------+" << endl;
    }
    return 0;
}