class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: E = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: G = None
        self.q: D = None
        self.r: C = None
        self.x: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: F = None
        self.p: J = None
        self.v: B = None
        self.w: B = None
        self.q: C = None
        self.y: J = None
        self.z: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.z: I = None
        self.y: H = None
        self.s: E = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: G = None
        self.q: D = None
        self.r: C = None
        self.x: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: F = None
        self.p: J = None
        self.v: B = None
        self.w: B = None
        self.q: C = None
        self.y: J = None
        self.z: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.z: I = None
        self.y: H = None
        self.s: E = None
        self.w: E = None
        self.txt = txt

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

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