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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: B = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: A = None
        self.p: F = None
        self.z: F = None
        self.o: A = None
        self.t: G = None
        self.r: F = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: B = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: A = None
        self.p: F = None
        self.z: F = None
        self.o: A = None
        self.t: G = None
        self.r: F = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

n.z = j
n.o = j
n.y = j
n.v = d
n.q = b
n.x = b
n.s = g
b.t = d
b.x = g
d.p = h
d.y = b
d.s = e
f.v = d
f.s = n
f.o = n
f.p = h
f.z = h
f.r = h
f.q = h
f.t = a
j.v = l
j.x = b
h.y = d
h.r = l
a.v = f
a.q = h
e.s = l
e.z = f
l.s = e
l.z = f
g.z = j
g.o = j
g.y = j
g.v = d
g.q = b
g.x = b
g.s = n
assert d.s.s.s.z.v.y.t.y.txt == "b"