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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: J = None
        self.o: H = None
        self.y: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: G = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: J = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: H = None
        self.x: G = None
        self.p: B = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: G = None
        self.x: B = None
        self.s: H = None
        self.t: D = None
        self.r: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: J = None
        self.o: H = None
        self.y: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: G = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: J = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: H = None
        self.x: G = None
        self.p: B = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: G = None
        self.x: B = None
        self.s: H = None
        self.t: D = None
        self.r: G = None
        self.txt = txt

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

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