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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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