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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

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