class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: G = None
        self.w: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: G = None
        self.w: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

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