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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: B = None
        self.x: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: F = None
        self.t: I = None
        self.v: I = None
        self.q: D = None
        self.p: D = None
        self.u: C = None
        self.r: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: B = None
        self.x: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: F = None
        self.t: I = None
        self.v: I = None
        self.q: D = None
        self.p: D = None
        self.u: C = None
        self.r: I = None
        self.txt = txt

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

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