class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: G = None
        self.o: G = None
        self.v: E = None
        self.r: J = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.y: E = None
        self.p: C = None
        self.o: E = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: B = None
        self.s: B = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: G = None
        self.o: G = None
        self.v: E = None
        self.r: J = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.y: E = None
        self.p: C = None
        self.o: E = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: B = None
        self.s: B = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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

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