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

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

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: A = None
        self.v: H = None
        self.o: E = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: E = None
        self.t: H = None
        self.o: F = None
        self.x: E = None
        self.w: H = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: C = None
        self.s: G = None
        self.q: G = None
        self.u: A = None
        self.o: F = None
        self.t: G = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: A = None
        self.v: H = None
        self.o: E = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: E = None
        self.t: H = None
        self.o: F = None
        self.x: E = None
        self.w: H = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: C = None
        self.s: G = None
        self.q: G = None
        self.u: A = None
        self.o: F = None
        self.t: G = None
        self.r: B = None
        self.txt = txt

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

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