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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: F = None
        self.p: F = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: G = None
        self.w: G = None
        self.v: G = None
        self.z: E = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: F = None
        self.v: H = None
        self.x: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.y: F = None
        self.p: H = None
        self.s: A = None
        self.txt = txt

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

e = A("e")
g = B("g")
h = C("h")
l = D("l")
a = E("a")
i = F("i")
c = G("c")
d = H("d")
k = E("k")

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: F = None
        self.p: F = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: G = None
        self.w: G = None
        self.v: G = None
        self.z: E = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: F = None
        self.v: H = None
        self.x: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.y: F = None
        self.p: H = None
        self.s: A = None
        self.txt = txt

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

e = A("e")
g = B("g")
h = C("h")
l = D("l")
a = E("a")
i = F("i")
c = G("c")
d = H("d")
k = E("k")

e.w = g
e.p = g
e.v = c
g.x = c
g.u = i
g.p = i
g.v = i
h.w = c
h.v = c
h.r = c
h.y = g
h.s = i
h.u = d
l.s = a
l.z = a
l.q = c
l.w = c
l.v = c
l.p = h
a.r = k
a.t = i
a.v = d
a.x = g
i.x = g
c.z = l
c.x = e
c.s = e
c.y = i
c.p = d
d.u = i
d.r = g
k.r = a
k.t = i
k.v = d
k.x = g
assert a.r.t.x.p.x.v.x.x.s.txt == "e"