class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: F = None
        self.q: I = None
        self.t: H = None
        self.o: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: C = None
        self.t: D = None
        self.p: D = None
        self.q: C = None
        self.v: D = None
        self.o: D = None
        self.u: I = None
        self.x: H = None
        self.r: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: B = None
        self.r: D = None
        self.q: J = None
        self.p: F = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: C = None
        self.z: F = None
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: C = None
        self.t: D = None
        self.p: D = None
        self.q: C = None
        self.v: D = None
        self.o: D = None
        self.u: I = None
        self.x: H = None
        self.r: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: B = None
        self.r: D = None
        self.q: J = None
        self.p: F = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: C = None
        self.z: F = None
        self.q: F = None
        self.txt = txt

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

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