class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: H = None
        self.w: D = None
        self.t: J = None
        self.s: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: J = None
        self.s: D = None
        self.t: F = None
        self.u: E = None
        self.z: D = None
        self.x: J = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: C = None
        self.r: G = None
        self.t: H = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: J = None
        self.s: D = None
        self.t: F = None
        self.u: E = None
        self.z: D = None
        self.x: J = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: C = None
        self.r: G = None
        self.t: H = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

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