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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: G = None
        self.s: E = None
        self.u: E = None
        self.p: A = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: G = None
        self.s: E = None
        self.u: E = None
        self.p: A = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: H = None
        self.txt = txt

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

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