class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: C = None
        self.x: H = None
        self.z: C = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: G = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.r: D = None
        self.t: B = None
        self.y: F = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: E = None
        self.t: D = None
        self.x: B = None
        self.o: D = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: G = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.r: D = None
        self.t: B = None
        self.y: F = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: E = None
        self.t: D = None
        self.x: B = None
        self.o: D = None
        self.r: A = None
        self.txt = txt

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

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