class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: D = None
        self.z: I = None
        self.u: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: C = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: F = None
        self.o: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: D = None
        self.p: D = None
        self.o: B = None
        self.y: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: C = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: F = None
        self.o: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: D = None
        self.p: D = None
        self.o: B = None
        self.y: E = None
        self.w: D = None
        self.txt = txt

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

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