class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: B = None
        self.y: G = None
        self.z: D = None
        self.q: H = None
        self.u: G = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: G = None
        self.t: D = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: H = None
        self.x: A = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: B = None
        self.y: G = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: G = None
        self.t: D = None
        self.p: A = None
        self.y: D = None
        self.u: F = None
        self.z: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: F = None
        self.t: E = None
        self.y: E = None
        self.txt = txt

e = A("e")
m = B("m")
b = C("b")
l = D("l")
h = E("h")
c = F("c")
n = G("n")
j = H("j")

e.x = n
e.y = n
e.u = n
e.v = m
e.z = l
e.q = j
e.o = c
m.o = c
m.q = n
m.t = l
m.w = l
m.y = e
b.r = h
b.s = j
b.x = e
b.u = e
l.t = m
l.r = m
l.v = m
l.y = n
h.w = e
h.p = e
h.v = n
h.t = l
h.y = l
h.u = c
h.z = m
c.p = e
c.w = b
n.r = l
n.v = j
n.u = j
n.x = b
j.x = l
j.o = c
j.t = h
j.y = h
assert e.v.q.r.t.y.v.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: B = None
        self.y: G = None
        self.z: D = None
        self.q: H = None
        self.u: G = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: G = None
        self.t: D = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: H = None
        self.x: A = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: B = None
        self.y: G = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: G = None
        self.t: D = None
        self.p: A = None
        self.y: D = None
        self.u: F = None
        self.z: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: F = None
        self.t: E = None
        self.y: E = None
        self.txt = txt

e = A("e")
m = B("m")
b = C("b")
l = D("l")
h = E("h")
c = F("c")
n = G("n")
j = H("j")

e.x = n
e.y = n
e.u = n
e.v = m
e.z = l
e.q = j
e.o = c
m.o = c
m.q = n
m.t = l
m.w = l
m.y = e
b.r = h
b.s = j
b.x = e
b.u = e
l.t = m
l.r = m
l.v = m
l.y = n
h.w = e
h.p = e
h.v = n
h.t = l
h.y = l
h.u = c
h.z = m
c.p = e
c.w = b
n.r = l
n.v = j
n.u = j
n.x = b
j.x = l
j.o = c
j.t = h
j.y = h
assert e.v.q.r.t.y.v.txt == "m"