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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: G = None
        self.q: H = None
        self.v: H = None
        self.z: I = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: G = None
        self.s: G = None
        self.q: D = None
        self.v: F = None
        self.w: D = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: G = None
        self.q: H = None
        self.v: H = None
        self.z: I = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: G = None
        self.s: G = None
        self.q: D = None
        self.v: F = None
        self.w: D = None
        self.y: G = None
        self.txt = txt

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

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

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