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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: B = None
        self.t: A = None
        self.y: E = None
        self.p: D = None
        self.w: E = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: C = None
        self.u: E = None
        self.y: A = None
        self.o: F = None
        self.z: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: B = None
        self.v: E = None
        self.y: G = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: D = None
        self.txt = txt

f = A("f")
h = B("h")
j = C("j")
g = D("g")
b = E("b")
l = F("l")
d = G("d")
c = H("c")
e = G("e")

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: B = None
        self.t: A = None
        self.y: E = None
        self.p: D = None
        self.w: E = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: C = None
        self.u: E = None
        self.y: A = None
        self.o: F = None
        self.z: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: B = None
        self.v: E = None
        self.y: G = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: D = None
        self.txt = txt

f = A("f")
h = B("h")
j = C("j")
g = D("g")
b = E("b")
l = F("l")
d = G("d")
c = H("c")
e = G("e")

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