class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: G = None
        self.w: H = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: F = None
        self.r: A = None
        self.p: D = None
        self.s: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: A = None
        self.z: B = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.o: C = None
        self.x: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: C = None
        self.txt = txt

d = A("d")
n = B("n")
e = C("e")
l = D("l")
b = E("b")
h = F("h")
k = G("k")
i = H("i")
m = I("m")
j = H("j")

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: F = None
        self.r: A = None
        self.p: D = None
        self.s: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: A = None
        self.z: B = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.o: C = None
        self.x: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: C = None
        self.txt = txt

d = A("d")
n = B("n")
e = C("e")
l = D("l")
b = E("b")
h = F("h")
k = G("k")
i = H("i")
m = I("m")
j = H("j")

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