class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: F = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: E = None
        self.p: F = None
        self.o: J = None
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: J = None
        self.o: D = None
        self.y: A = None
        self.s: C = None
        self.x: B = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: I = None
        self.s: B = None
        self.o: F = None
        self.t: A = None
        self.x: F = None
        self.p: J = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: C = None
        self.v: D = None
        self.t: I = None
        self.x: A = None
        self.o: C = None
        self.q: A = None
        self.y: A = None
        self.z: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: D = None
        self.w: E = None
        self.s: D = None
        self.r: D = None
        self.txt = txt

h = A("h")
a = B("a")
m = C("m")
c = D("c")
i = E("i")
d = F("d")
e = G("e")
k = H("k")
n = I("n")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: E = None
        self.p: F = None
        self.o: J = None
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: J = None
        self.o: D = None
        self.y: A = None
        self.s: C = None
        self.x: B = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: I = None
        self.s: B = None
        self.o: F = None
        self.t: A = None
        self.x: F = None
        self.p: J = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: C = None
        self.v: D = None
        self.t: I = None
        self.x: A = None
        self.o: C = None
        self.q: A = None
        self.y: A = None
        self.z: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: D = None
        self.w: E = None
        self.s: D = None
        self.r: D = None
        self.txt = txt

h = A("h")
a = B("a")
m = C("m")
c = D("c")
i = E("i")
d = F("d")
e = G("e")
k = H("k")
n = I("n")
l = J("l")

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