package main

//import "fmt"


// start of lower case letters
var a = [][]int{   {0,0,0,0,0}, 
{0,0,1,1,0}, 
{0,0,0,0,1},
{0,0,1,1,1}, 
{0,1,0,0,1}, 
{0,0,1,1,1}, 
{0,0,0,0,0}}



var b = [][]int{   {0,1,0,0,0}, 
{0,1,0,0,0}, 
{0,1,1,1,0},
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,1,1,1,0}, 
{0,0,0,0,0}}


var c = [][]int{    {0,0,0,0,0}, 
{0,0,1,1,0}, 
{0,1,0,0,1},
{0,1,0,0,0}, 
{0,1,0,0,1}, 
{0,0,1,1,0}, 
{0,0,0,0,0}}

var d = [][]int{    {0,0,0,0,1}, 
{0,0,0,0,1}, 
{0,0,1,1,1},
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,0,1,1,1}, 
{0,0,0,0,0}}

var e = [][]int{    {0,0,0,0,0}, 
{0,0,1,1,0}, 
{0,1,0,0,1},
{0,1,1,1,1}, 
{0,1,0,0,0}, 
{0,0,1,1,0}, 
{0,0,0,0,0}}

var f = [][]int{    {0,0,1,1,0}, 
{0,1,0,0,0}, 
{0,1,1,1,0},
{0,1,0,0,0}, 
{0,1,0,0,0}, 
{0,1,0,0,0}, 
{0,0,0,0,0}}

var g = [][]int{    {0,0,0,0,0}, 
{0,0,1,1,1}, 
{0,1,0,0,1},
{0,1,0,0,1}, 
{0,0,1,1,1}, 
{0,0,0,0,1}, 
{0,0,1,1,0}}

var h = [][]int{    {0,1,0,0,0}, 
{0,1,0,0,0}, 
{0,1,1,1,0},
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,0,0,0,0}}

var i = [][]int{    {0,0,1,0,0}, 
{0,0,0,0,0}, 
{0,0,1,0,0},
{0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,0,0,0}}

var j = [][]int{  {0,0,0,0,0}, 
{0,0,0,1,0}, 
{0,0,0,0,0},
{0,0,0,1,0}, 
{0,0,0,1,0}, 
{0,0,0,1,0}, 
{0,1,1,0,0}}

var k = [][]int{  {0,1,0,0,0}, 
{0,1,0,1,0}, 
{0,1,1,0,0},
{0,1,1,0,0}, 
{0,1,0,1,0}, 
{0,1,0,1,0}, 
{0,0,0,0,0}}

var l = [][]int{   {0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,1,0,0},
{0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,0,1,0}, 
{0,0,0,0,0}}


var m = [][]int{    {0,0,0,0,0}, 
{1,1,1,1,0}, 
{1,0,1,0,1},
{1,0,1,0,1}, 
{1,0,1,0,1}, 
{1,0,1,0,1}, 
{0,0,0,0,0}}


var n = [][]int{    {0,0,0,0,0}, 
{0,1,1,1,0}, 
{0,1,0,0,1},
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,0,0,0,0}}


var o = [][]int{  {0,0,0,0,0}, 
{0,0,1,1,0}, 
{0,1,0,0,1},
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,0,1,1,0}, 
{0,0,0,0,0}}


var p = [][]int{  {0,0,0,0,0}, 
{0,0,1,1,0}, 
{0,1,0,0,1},
{0,1,0,0,1}, 
{0,1,1,1,0}, 
{0,1,0,0,0}, 
{0,1,0,0,0}}



var q = [][]int{   {0,0,0,0,0}, 
{0,1,1,0,0}, 
{1,0,0,1,0},
{1,0,0,1,0}, 
{0,1,1,1,0}, 
{0,0,0,1,0}, 
{0,0,0,1,0}}

var r = [][]int{    {0,0,0,0,0}, 
{0,1,0,1,1}, 
{0,1,1,0,0},
{0,1,0,0,0}, 
{0,1,0,0,0}, 
{0,1,0,0,0}, 
{0,0,0,0,0}}  

var s = [][]int{    {0,0,0,0,0}, 
{0,0,1,1,1}, 
{0,1,0,0,0},
{0,0,1,1,0}, 
{0,0,0,0,1}, 
{0,1,1,1,0}, 
{0,0,0,0,0}}


var t = [][]int{    {0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,1,1,1,0},
{0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,0,1,1}, 
{0,0,0,0,0}}


var u = [][]int{    {0,0,0,0,0}, 
{0,1,0,0,1}, 
{0,1,0,0,1},
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,0,1,1,1}, 
{0,0,0,0,0}}


var v = [][]int{    {0,0,0,0,0}, 
{0,0,0,0,0}, 
{0,1,0,0,1},
{0,1,0,0,1}, 
{0,1,0,1,0}, 
{0,0,1,0,0}, 
{0,0,0,0,0}}

var w = [][]int{    {0,0,0,0,0}, 
{1,0,0,0,1}, 
{1,0,0,0,1},
{1,0,1,0,1}, 
{1,0,1,0,1}, 
{0,1,0,1,0}, 
{0,0,0,0,0}}


var x = [][]int{    {0,0,0,0,0}, 
{0,1,0,0,1}, 
{0,1,0,0,1},
{0,0,1,1,0}, 
{0,1,0,0,1}, 
{0,1,0,0,1}, 
{0,0,0,0,0}}



var y = [][]int{    {0,0,0,0,0}, 
{0,1,0,0,1}, 
{0,1,0,0,1},
{0,0,1,1,1}, 
{0,0,0,0,1}, 
{0,0,0,0,1}, 
{0,0,1,1,0}}

var z = [][]int{    {0,0,0,0,0}, 
{0,1,1,1,1}, 
{0,0,0,0,1},
{0,0,1,1,0}, 
{0,1,0,0,0}, 
{0,1,1,1,1}, 
{0,0,0,0,0}}
// end of lower case letters

//start of upper case letters

var H = [][]int{    {1,0,0,0,1}, 
{1,0,0,0,1}, 
{1,0,0,0,1},
{1,1,1,1,1}, 
{1,0,0,0,1}, 
{1,0,0,0,1}, 
{0,0,0,0,0}}

var W = [][]int{    {1,0,0,0,1}, 
					{1,0,0,0,1}, 
					{1,0,0,0,1},
					{1,0,0,0,1}, 
					{1,0,1,0,1}, 
					{1,0,1,0,1}, 
					{0,1,0,1,0}}

//end of upper case letters

//start of symbols
var space = [][]int{    {0,0,0,0,0}, 
{0,0,0,0,0}, 
{0,0,0,0,0},
{0,0,0,0,0}, 
{0,0,0,0,0}, 
{0,0,0,0,0}, 
{0,0,0,0,0}}

var questionmark = [][]int{    {0,1,1,1,0}, 
{1,0,0,0,1}, 
{0,0,0,0,1},
{0,0,0,1,0}, 
{0,0,1,0,0}, 
{0,0,0,0,0}, 
{0,0,1,0,0}}

var exclamationmark = [][]int{    {0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,1,0,0},
{0,0,1,0,0}, 
{0,0,1,0,0}, 
{0,0,0,0,0}, 
{0,0,1,0,0}}

var dash = [][]int{    {0,0,0,0,0}, 
{0,0,0,0,0}, 
{0,0,0,0,0},
{0,1,1,1,1}, 
{0,0,0,0,0}, 
{0,0,0,0,0}, 
{0,0,0,0,0}}

var greaterThan = [][]int{    {0,0,0,0,0}, 
{0,1,0,0,0}, 
{0,0,1,0,0},
{0,0,0,1,0}, 
{0,0,1,0,0}, 
{0,1,0,0,0}, 
{0,0,0,0,0}}

var alphabet = map[string][][]int{ 
	"a":  a,
	"b": b,
	"c": c,
	"d": d,
	"e": e,
	"f": f,
	"g": g,
	"h": h,
	"i": i,
	"j": j,
	"k": k,
	"l": l,
	"m": m,
	"n": n,
	"o": o,
	"p": p,
	"q": q,
	"r": r,
	"s": s,
	"t": t,
	"u": u,
	"v": v,
	"w": w,
	"x": x,
	"y": y,
	"z": z,

	"H": H,
	"W": W,
	" ": space,
	"?": questionmark,
	"!": exclamationmark,
	"-": dash,
	">": greaterThan,
	
}

func ReturnMatrix(message string) [][]int {

	for i := 0; i < len(alphabet); i++ {
		_, found := alphabet[string(message[i])]    
		//fmt.Println(string(message[i]))
		if found {
			//fmt.Println(string(message[i]))
			return alphabet[string(message[i])]
		}
	}
    
	return questionmark
}