class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: I = None
        self.r: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: F = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: J = None
        self.y: I = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: C = None
        self.y: C = None
        self.q: B = None
        self.o: F = None
        self.r: J = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: A = None
        self.z: I = None
        self.y: I = None
        self.s: B = None
        self.w: H = None
        self.u: D = None
        self.x: G = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: G = None
        self.r: H = None
        self.o: J = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: B = None
        self.r: A = None
        self.t: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: F = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: J = None
        self.y: I = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: C = None
        self.y: C = None
        self.q: B = None
        self.o: F = None
        self.r: J = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: A = None
        self.z: I = None
        self.y: I = None
        self.s: B = None
        self.w: H = None
        self.u: D = None
        self.x: G = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: G = None
        self.r: H = None
        self.o: J = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: B = None
        self.r: A = None
        self.t: B = None
        self.txt = txt

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

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