class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: J = None
        self.x: I = None
        self.o: A = None
        self.w: H = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: C = None
        self.y: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: C = None
        self.u: B = None
        self.t: B = None
        self.w: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: F = None
        self.r: A = None
        self.z: J = None
        self.o: D = None
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: A = None
        self.v: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: F = None
        self.u: B = None
        self.s: B = None
        self.v: C = None
        self.w: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: J = None
        self.x: I = None
        self.o: A = None
        self.w: H = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: C = None
        self.y: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: C = None
        self.u: B = None
        self.t: B = None
        self.w: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: F = None
        self.r: A = None
        self.z: J = None
        self.o: D = None
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: A = None
        self.v: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: F = None
        self.u: B = None
        self.s: B = None
        self.v: C = None
        self.w: E = None
        self.txt = txt

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

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