class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: C = None
        self.o: B = None
        self.s: F = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: I = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: F = None
        self.w: A = None
        self.r: B = None
        self.o: F = None
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: H = None
        self.r: D = None
        self.z: J = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: A = None
        self.t: B = None
        self.y: A = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: I = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: F = None
        self.w: A = None
        self.r: B = None
        self.o: F = None
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: H = None
        self.r: D = None
        self.z: J = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: A = None
        self.t: B = None
        self.y: A = None
        self.p: G = None
        self.txt = txt

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

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

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

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