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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: D = None
        self.p: G = None
        self.u: E = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: E = None
        self.p: H = None
        self.x: G = None
        self.r: H = None
        self.z: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: E = None
        self.y: F = None
        self.p: G = None
        self.txt = txt

b = A("b")
l = B("l")
a = C("a")
h = D("h")
n = E("n")
k = F("k")
g = G("g")
j = H("j")
i = F("i")
c = H("c")

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: D = None
        self.p: G = None
        self.u: E = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: E = None
        self.p: H = None
        self.x: G = None
        self.r: H = None
        self.z: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: E = None
        self.y: F = None
        self.p: G = None
        self.txt = txt

b = A("b")
l = B("l")
a = C("a")
h = D("h")
n = E("n")
k = F("k")
g = G("g")
j = H("j")
i = F("i")
c = H("c")

b.t = l
b.q = l
b.x = g
b.p = h
b.v = a
b.z = n
b.r = i
b.s = i
l.s = n
l.u = n
l.r = h
l.q = h
l.p = g
a.v = l
h.u = g
h.x = g
h.z = g
h.w = n
h.p = c
h.r = c
n.w = a
n.p = g
n.t = g
n.y = j
k.z = n
g.w = l
g.o = b
j.o = i
j.r = n
j.y = k
j.p = g
i.z = n
c.o = k
c.r = n
c.y = i
c.p = g
assert l.p.w.s.t.o.txt == "b"