class A:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: I = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.o: B = None
        self.w: D = None
        self.v: B = None
        self.q: H = None
        self.u: A = None
        self.t: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: J = None
        self.z: A = None
        self.y: I = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.o: B = None
        self.w: D = None
        self.v: B = None
        self.q: H = None
        self.u: A = None
        self.t: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: J = None
        self.z: A = None
        self.y: I = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

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