class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: F = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: H = None
        self.r: C = None
        self.x: D = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: B = None
        self.s: H = None
        self.z: B = None
        self.r: B = None
        self.v: C = None
        self.w: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: A = None
        self.p: H = None
        self.v: A = None
        self.s: B = None
        self.o: F = None
        self.txt = txt

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

d = A("d")
h = B("h")
e = C("e")
m = D("m")
n = E("n")
c = F("c")
i = G("i")
g = H("g")
f = H("f")
b = F("b")

d.v = m
d.r = m
d.o = n
h.u = m
h.s = c
h.q = d
e.x = d
e.r = g
e.v = n
m.o = d
n.q = h
n.w = f
n.r = e
n.x = m
n.t = d
c.o = i
c.p = h
c.z = h
c.r = h
c.s = f
c.v = e
c.w = b
i.w = d
i.r = d
i.v = d
i.p = g
i.s = h
i.o = b
g.x = b
f.x = c
b.o = i
b.p = h
b.z = h
b.r = h
b.s = g
b.v = e
b.w = c
assert n.x.o.v.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: F = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: H = None
        self.r: C = None
        self.x: D = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: B = None
        self.s: H = None
        self.z: B = None
        self.r: B = None
        self.v: C = None
        self.w: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: A = None
        self.p: H = None
        self.v: A = None
        self.s: B = None
        self.o: F = None
        self.txt = txt

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

d = A("d")
h = B("h")
e = C("e")
m = D("m")
n = E("n")
c = F("c")
i = G("i")
g = H("g")
f = H("f")
b = F("b")

d.v = m
d.r = m
d.o = n
h.u = m
h.s = c
h.q = d
e.x = d
e.r = g
e.v = n
m.o = d
n.q = h
n.w = f
n.r = e
n.x = m
n.t = d
c.o = i
c.p = h
c.z = h
c.r = h
c.s = f
c.v = e
c.w = b
i.w = d
i.r = d
i.v = d
i.p = g
i.s = h
i.o = b
g.x = b
f.x = c
b.o = i
b.p = h
b.z = h
b.r = h
b.s = g
b.v = e
b.w = c
assert n.x.o.v.txt == "m"