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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: B = None
        self.q: A = None
        self.y: E = None
        self.z: C = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: E = None
        self.u: C = None
        self.r: E = None
        self.v: F = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

d = A("d")
c = B("c")
m = C("m")
j = D("j")
b = E("b")
h = F("h")
a = G("a")
e = C("e")
i = G("i")

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: B = None
        self.q: A = None
        self.y: E = None
        self.z: C = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: E = None
        self.u: C = None
        self.r: E = None
        self.v: F = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

d = A("d")
c = B("c")
m = C("m")
j = D("j")
b = E("b")
h = F("h")
a = G("a")
e = C("e")
i = G("i")

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