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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: G = None
        self.q: D = None
        self.z: F = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: C = None
        self.v: I = None
        self.w: I = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: B = None
        self.y: H = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: G = None
        self.q: D = None
        self.z: F = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: C = None
        self.v: I = None
        self.w: I = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: B = None
        self.y: H = None
        self.u: G = None
        self.txt = txt

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

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