class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: D = None
        self.p: D = None
        self.v: C = None
        self.y: F = None
        self.r: B = None
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: F = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: D = None
        self.o: C = None
        self.x: G = None
        self.u: D = None
        self.p: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: F = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: D = None
        self.o: C = None
        self.x: G = None
        self.u: D = None
        self.p: G = None
        self.txt = txt

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

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

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