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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: H = None
        self.w: F = None
        self.q: I = None
        self.y: F = None
        self.t: I = None
        self.s: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: F = None
        self.t: E = None
        self.w: I = None
        self.y: F = None
        self.u: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: B = None
        self.s: H = None
        self.z: G = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: D = None
        self.v: D = None
        self.w: G = None
        self.t: B = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.z: E = None
        self.r: A = None
        self.u: C = None
        self.txt = txt

d = A("d")
i = B("i")
a = C("a")
h = D("h")
b = E("b")
g = F("g")
e = G("e")
f = H("f")
j = I("j")
m = H("m")

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: H = None
        self.w: F = None
        self.q: I = None
        self.y: F = None
        self.t: I = None
        self.s: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: F = None
        self.t: E = None
        self.w: I = None
        self.y: F = None
        self.u: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: B = None
        self.s: H = None
        self.z: G = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.u: D = None
        self.v: D = None
        self.w: G = None
        self.t: B = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: B = None
        self.z: E = None
        self.r: A = None
        self.u: C = None
        self.txt = txt

d = A("d")
i = B("i")
a = C("a")
h = D("h")
b = E("b")
g = F("g")
e = G("e")
f = H("f")
j = I("j")
m = H("m")

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