class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.p: H = None
        self.v: F = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: F = None
        self.y: C = None
        self.s: A = None
        self.w: F = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: A = None
        self.t: C = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: H = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: D = None
        self.u: E = None
        self.x: G = None
        self.y: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.p: H = None
        self.v: F = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: F = None
        self.y: C = None
        self.s: A = None
        self.w: F = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: A = None
        self.t: C = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: H = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: D = None
        self.u: E = None
        self.x: G = None
        self.y: F = None
        self.txt = txt

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

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