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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: G = None
        self.y: F = None
        self.w: E = None
        self.u: G = None
        self.o: G = None
        self.s: H = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: H = None
        self.w: F = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.w: A = None
        self.x: C = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: G = None
        self.y: F = None
        self.w: E = None
        self.u: G = None
        self.o: G = None
        self.s: H = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: H = None
        self.w: F = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.w: A = None
        self.x: C = None
        self.r: B = None
        self.txt = txt

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

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

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