class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: G = None
        self.y: G = None
        self.z: B = None
        self.x: E = None
        self.t: B = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: C = None
        self.s: C = None
        self.x: F = None
        self.u: C = None
        self.v: D = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: C = None
        self.s: C = None
        self.x: F = None
        self.u: C = None
        self.v: D = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

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