class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: E = None
        self.v: E = None
        self.u: A = None
        self.x: D = None
        self.w: G = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: A = None
        self.v: J = None
        self.r: D = None
        self.z: H = None
        self.p: H = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: B = None
        self.t: F = None
        self.u: G = None
        self.v: G = None
        self.o: H = None
        self.z: D = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: E = None
        self.v: E = None
        self.u: A = None
        self.x: D = None
        self.w: G = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: A = None
        self.v: J = None
        self.r: D = None
        self.z: H = None
        self.p: H = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: B = None
        self.t: F = None
        self.u: G = None
        self.v: G = None
        self.o: H = None
        self.z: D = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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