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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: C = None
        self.z: E = None
        self.u: A = None
        self.r: I = None
        self.q: A = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: B = None
        self.u: C = None
        self.o: B = None
        self.v: J = None
        self.w: G = None
        self.r: J = None
        self.q: B = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: A = None
        self.q: J = None
        self.y: C = None
        self.p: B = None
        self.x: B = None
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: B = None
        self.o: C = None
        self.q: G = None
        self.t: J = None
        self.z: H = None
        self.x: A = None
        self.s: G = None
        self.p: A = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: C = None
        self.z: E = None
        self.u: A = None
        self.r: I = None
        self.q: A = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: B = None
        self.u: C = None
        self.o: B = None
        self.v: J = None
        self.w: G = None
        self.r: J = None
        self.q: B = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: A = None
        self.q: J = None
        self.y: C = None
        self.p: B = None
        self.x: B = None
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: B = None
        self.o: C = None
        self.q: G = None
        self.t: J = None
        self.z: H = None
        self.x: A = None
        self.s: G = None
        self.p: A = None
        self.r: E = None
        self.txt = txt

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

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

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