# -*- coding: utf-8 -*-  

letter_to_int_dict = {
    'a': 0, 'A': 0,
    'b': 1, 'B': 1,
    'c': 2, 'C': 2,
    'č': 3, 'Č': 3,
    'ć': 4, 'Ć': 4,
    'd': 5, 'D': 5,
    'đ': 6, 'Đ': 6,
    'e': 7, 'E': 7,
    'f': 8, 'F': 8,
    'g': 9, 'G': 9,
    'h': 10, 'H': 10,
    'i': 11, 'I': 11,
    'j': 12, 'J': 12,
    'k': 13, 'K': 13,
    'l': 14, 'L': 14,
    'm': 15, 'M': 15,
    'n': 16, 'N': 16,
    'o': 17, 'O': 17,
    'p': 18, 'P': 18,
    'r': 19, 'R': 19,
    's': 20, 'S': 20,
    'š': 21, 'Š': 21,
    't': 22, 'T': 22,
    'u': 23, 'U': 23,
    'v': 24, 'V': 24,
    'z': 25, 'Z': 25,
    'ž': 26, 'Ž': 26,
    'x': 27, 'X': 27,
    'y': 28, 'Y': 28,
    'w': 29, 'W': 29,
    'q': 30, 'Q': 30,
    '-': 31
}

int_to_letter_dict = {
    0: 'A',
    1: 'B',
    2: 'C',
    3: 'Č',
    4: 'Ć',
    5: 'D',
    6: 'Đ',
    7: 'E',
    8: 'F',
    9: 'G',
    10: 'H',
    11: 'I',
    12: 'J',
    13: 'K',
    14: 'L',
    15: 'M',
    16: 'N',
    17: 'O',
    18: 'P',
    19: 'R',
    20: 'S',
    21: 'Š',
    22: 'T',
    23: 'U',
    24: 'V',
    25: 'Z',
    26: 'Ž',
    27: 'X',
    28: 'Y',
    29: 'W',
    30: 'Q',
    31: '-'
}

def map_letter_to_int(value):
    return letter_to_int_dict.get(value, 31)

def map_int_to_letter(value):
    return int_to_letter_dict.get(value, '-')

# -*- coding: utf-8 -*-  

letter_to_int_dict = {
    'a': 0, 'A': 0,
    'b': 1, 'B': 1,
    'c': 2, 'C': 2,
    'č': 3, 'Č': 3,
    'ć': 4, 'Ć': 4,
    'd': 5, 'D': 5,
    'đ': 6, 'Đ': 6,
    'e': 7, 'E': 7,
    'f': 8, 'F': 8,
    'g': 9, 'G': 9,
    'h': 10, 'H': 10,
    'i': 11, 'I': 11,
    'j': 12, 'J': 12,
    'k': 13, 'K': 13,
    'l': 14, 'L': 14,
    'm': 15, 'M': 15,
    'n': 16, 'N': 16,
    'o': 17, 'O': 17,
    'p': 18, 'P': 18,
    'r': 19, 'R': 19,
    's': 20, 'S': 20,
    'š': 21, 'Š': 21,
    't': 22, 'T': 22,
    'u': 23, 'U': 23,
    'v': 24, 'V': 24,
    'z': 25, 'Z': 25,
    'ž': 26, 'Ž': 26,
    'x': 27, 'X': 27,
    'y': 28, 'Y': 28,
    'w': 29, 'W': 29,
    'q': 30, 'Q': 30,
    '-': 31
}

int_to_letter_dict = {
    0: 'A',
    1: 'B',
    2: 'C',
    3: 'Č',
    4: 'Ć',
    5: 'D',
    6: 'Đ',
    7: 'E',
    8: 'F',
    9: 'G',
    10: 'H',
    11: 'I',
    12: 'J',
    13: 'K',
    14: 'L',
    15: 'M',
    16: 'N',
    17: 'O',
    18: 'P',
    19: 'R',
    20: 'S',
    21: 'Š',
    22: 'T',
    23: 'U',
    24: 'V',
    25: 'Z',
    26: 'Ž',
    27: 'X',
    28: 'Y',
    29: 'W',
    30: 'Q',
    31: '-'
}

def map_letter_to_int(value):
    return letter_to_int_dict.get(value, 31)

def map_int_to_letter(value):
    return int_to_letter_dict.get(value, '-')

# -*- coding: utf-8 -*-