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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: G = None
        self.o: H = None
        self.s: G = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

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

i = A("i")
k = B("k")
d = C("d")
e = D("e")
m = E("m")
g = F("g")
b = G("b")
c = H("c")

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: G = None
        self.o: H = None
        self.s: G = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

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

i = A("i")
k = B("k")
d = C("d")
e = D("e")
m = E("m")
g = F("g")
b = G("b")
c = H("c")

i.v = g
i.t = c
k.r = d
k.u = b
k.s = b
k.o = c
k.z = e
d.t = c
d.v = c
d.u = i
d.z = b
d.x = b
d.p = e
e.o = b
e.y = g
m.o = i
m.u = d
g.u = e
g.v = e
g.z = m
g.t = b
g.p = c
b.y = m
b.s = m
b.z = m
b.w = d
b.x = g
b.p = e
b.q = e
c.u = i
c.w = k
c.v = k
c.x = e
c.t = d
assert e.o.p.o.x.v.txt == "e"