class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: H = None
        self.w: C = None
        self.y: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: A = None
        self.v: A = None
        self.q: E = None
        self.z: D = None
        self.w: F = None
        self.o: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: B = None
        self.o: E = None
        self.t: B = None
        self.y: E = None
        self.txt = txt

h = A("h")
a = B("a")
j = C("j")
d = D("d")
n = E("n")
m = F("m")
b = G("b")
c = H("c")
f = H("f")

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: A = None
        self.v: A = None
        self.q: E = None
        self.z: D = None
        self.w: F = None
        self.o: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: B = None
        self.o: E = None
        self.t: B = None
        self.y: E = None
        self.txt = txt

h = A("h")
a = B("a")
j = C("j")
d = D("d")
n = E("n")
m = F("m")
b = G("b")
c = H("c")
f = H("f")

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