class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: B = None
        self.v: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: G = None
        self.t: F = None
        self.v: E = None
        self.y: H = None
        self.u: G = None
        self.r: D = None
        self.o: D = None
        self.s: G = None
        self.w: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.s: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: E = None
        self.u: H = None
        self.t: D = None
        self.q: I = None
        self.x: F = None
        self.w: D = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: G = None
        self.t: F = None
        self.v: E = None
        self.y: H = None
        self.u: G = None
        self.r: D = None
        self.o: D = None
        self.s: G = None
        self.w: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.s: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: E = None
        self.u: H = None
        self.t: D = None
        self.q: I = None
        self.x: F = None
        self.w: D = None
        self.z: D = None
        self.txt = txt

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

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