class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: G = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

g.s = d
g.u = d
g.t = a
e.t = d
e.s = d
e.z = c
e.p = c
e.x = a
e.o = g
e.r = g
e.w = g
b.s = i
b.y = m
b.t = m
b.z = m
n.z = b
n.x = e
n.r = a
n.u = a
n.w = a
c.v = m
m.s = i
m.v = d
m.w = a
d.w = b
a.v = b
a.x = c
a.r = e
i.z = b
i.x = j
i.r = a
i.u = a
i.w = a
j.t = d
j.s = d
j.z = c
j.p = c
j.x = a
j.o = g
j.r = g
j.w = g
assert a.x.v.v.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: G = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

g.s = d
g.u = d
g.t = a
e.t = d
e.s = d
e.z = c
e.p = c
e.x = a
e.o = g
e.r = g
e.w = g
b.s = i
b.y = m
b.t = m
b.z = m
n.z = b
n.x = e
n.r = a
n.u = a
n.w = a
c.v = m
m.s = i
m.v = d
m.w = a
d.w = b
a.v = b
a.x = c
a.r = e
i.z = b
i.x = j
i.r = a
i.u = a
i.w = a
j.t = d
j.s = d
j.z = c
j.p = c
j.x = a
j.o = g
j.r = g
j.w = g
assert a.x.v.v.w.txt == "b"