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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.q: C = None
        self.txt = txt

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

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

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

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