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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: E = None
        self.s: B = None
        self.w: A = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: H = None
        self.u: H = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: J = None
        self.t: C = None
        self.s: I = None
        self.v: C = None
        self.y: A = None
        self.u: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: E = None
        self.s: B = None
        self.w: A = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: H = None
        self.u: H = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: J = None
        self.t: C = None
        self.s: I = None
        self.v: C = None
        self.y: A = None
        self.u: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.v: D = None
        self.txt = txt

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

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