class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: H = None
        self.v: H = None
        self.y: C = None
        self.r: B = None
        self.t: E = None
        self.p: C = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: G = None
        self.t: G = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: G = None
        self.t: G = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: E = None
        self.txt = txt

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

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