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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: C = None
        self.z: F = None
        self.q: F = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: H = None
        self.p: H = None
        self.y: D = None
        self.t: G = None
        self.v: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: D = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: A = None
        self.p: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: C = None
        self.z: F = None
        self.q: F = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: H = None
        self.p: H = None
        self.y: D = None
        self.t: G = None
        self.v: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: D = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: A = None
        self.p: A = None
        self.y: B = None
        self.txt = txt

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

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