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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: C = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: A = None
        self.y: D = None
        self.p: H = None
        self.r: H = None
        self.v: I = None
        self.z: C = None
        self.w: F = None
        self.s: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: C = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: A = None
        self.y: D = None
        self.p: H = None
        self.r: H = None
        self.v: I = None
        self.z: C = None
        self.w: F = None
        self.s: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: F = None
        self.txt = txt

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

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