fun main(args: Array<String>) {
    val (A, B) = readInputLine().split(" ").map { it.toInt() }

    val ans = Array(100) { CharArray(100) { '#' } }

    for (i in 50 until 100) {
        ans[i] = CharArray(100) { '.' }
    }

    for (i in 0 until A - 1) {
        ans[i / 50 * 2][(i % 50) * 2] = '.'
    }

    for (i in 0 until B - 1) {
        ans[99 - (i / 50 * 2)][(i % 50) * 2] = '#'
    }

    println("100 100")
    for (a in ans) {
        println(a.joinToString(""))
    }
}

fun readInputLine(): String {
    return readLine()!!
}
