class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: I = None
        self.z: F = None
        self.w: B = None
        self.p: G = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: D = None
        self.o: C = None
        self.r: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: A = None
        self.r: F = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: B = None
        self.q: F = None
        self.t: A = None
        self.y: E = None
        self.w: A = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: I = None
        self.z: F = None
        self.w: B = None
        self.p: G = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: D = None
        self.o: C = None
        self.r: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: A = None
        self.r: F = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: B = None
        self.q: F = None
        self.t: A = None
        self.y: E = None
        self.w: A = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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