class A:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: H = None
        self.t: E = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: A = None
        self.z: D = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: A = None
        self.z: D = None
        self.s: A = None
        self.txt = txt

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

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

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