class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: E = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: F = None
        self.r: E = None
        self.w: F = None
        self.y: H = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: F = None
        self.y: G = None
        self.v: D = None
        self.u: H = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: A = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.z: E = None
        self.t: G = None
        self.u: C = None
        self.r: G = None
        self.q: G = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: C = None
        self.w: H = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

i = A("i")
n = B("n")
e = C("e")
b = D("b")
g = E("g")
k = F("k")
l = G("l")
a = H("a")
m = E("m")

i.x = b
i.s = g
i.t = m
n.q = e
n.p = k
n.w = k
n.r = m
n.y = a
n.u = i
n.z = i
e.p = k
e.r = k
e.y = l
e.v = b
e.w = b
e.u = a
b.s = a
b.w = i
b.p = k
g.y = a
k.x = i
k.s = e
k.u = e
k.z = g
k.w = g
k.t = l
k.r = l
k.q = l
l.p = a
l.w = a
l.q = e
l.y = b
a.q = b
m.y = a
assert m.y.q.p.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: E = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: F = None
        self.r: E = None
        self.w: F = None
        self.y: H = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: F = None
        self.y: G = None
        self.v: D = None
        self.u: H = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: A = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.z: E = None
        self.t: G = None
        self.u: C = None
        self.r: G = None
        self.q: G = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: C = None
        self.w: H = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

i = A("i")
n = B("n")
e = C("e")
b = D("b")
g = E("g")
k = F("k")
l = G("l")
a = H("a")
m = E("m")

i.x = b
i.s = g
i.t = m
n.q = e
n.p = k
n.w = k
n.r = m
n.y = a
n.u = i
n.z = i
e.p = k
e.r = k
e.y = l
e.v = b
e.w = b
e.u = a
b.s = a
b.w = i
b.p = k
g.y = a
k.x = i
k.s = e
k.u = e
k.z = g
k.w = g
k.t = l
k.r = l
k.q = l
l.p = a
l.w = a
l.q = e
l.y = b
a.q = b
m.y = a
assert m.y.q.p.txt == "k"