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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.w: G = None
        self.y: I = None
        self.o: C = None
        self.s: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: F = None
        self.u: A = None
        self.q: A = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.w: G = None
        self.y: I = None
        self.o: C = None
        self.s: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: F = None
        self.u: A = None
        self.q: A = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: C = None
        self.txt = txt

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

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

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

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