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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: H = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: F = None
        self.q: C = None
        self.s: B = None
        self.r: E = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: A = None
        self.w: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: F = None
        self.r: D = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: H = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: F = None
        self.q: C = None
        self.s: B = None
        self.r: E = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: A = None
        self.w: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: F = None
        self.r: D = None
        self.p: G = None
        self.txt = txt

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

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

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