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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: H = None
        self.v: D = None
        self.o: A = None
        self.q: E = None
        self.z: C = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: G = None
        self.z: B = None
        self.t: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: H = None
        self.v: D = None
        self.o: A = None
        self.q: E = None
        self.z: C = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: G = None
        self.z: B = None
        self.t: J = None
        self.txt = txt

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

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

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

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