class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.x: C = None
        self.p: I = None
        self.u: B = None
        self.y: G = None
        self.o: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: A = None
        self.t: I = None
        self.x: E = None
        self.u: C = None
        self.w: B = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: E = None
        self.u: H = None
        self.p: A = None
        self.q: H = None
        self.s: H = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: I = None
        self.z: F = None
        self.t: I = None
        self.p: B = None
        self.s: E = None
        self.u: G = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: A = None
        self.t: I = None
        self.x: E = None
        self.u: C = None
        self.w: B = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: E = None
        self.u: H = None
        self.p: A = None
        self.q: H = None
        self.s: H = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: I = None
        self.z: F = None
        self.t: I = None
        self.p: B = None
        self.s: E = None
        self.u: G = None
        self.o: E = None
        self.txt = txt

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

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

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