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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: E = None
        self.z: D = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: E = None
        self.z: D = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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