class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: F = None
        self.x: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: D = None
        self.s: F = None
        self.y: H = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: G = None
        self.z: H = None
        self.x: E = None
        self.r: C = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: G = None
        self.p: A = None
        self.u: D = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

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

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

g = A("g")
i = B("i")
k = C("k")
d = D("d")
a = E("a")
e = F("e")
l = G("l")
h = H("h")

g.w = a
g.x = a
g.p = e
i.q = h
k.u = d
k.v = d
k.s = e
k.q = e
k.y = h
d.s = h
d.z = h
d.o = l
d.x = a
d.u = a
d.r = k
a.p = l
a.r = d
a.y = e
a.v = e
e.q = h
e.s = l
e.p = g
e.y = g
e.u = d
e.t = d
l.r = d
l.w = i
h.z = l
h.q = e
h.r = i
h.x = i
h.p = g
h.w = a
assert e.p.p.p.w.r.u.p.txt == "
class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: F = None
        self.x: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: D = None
        self.s: F = None
        self.y: H = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: G = None
        self.z: H = None
        self.x: E = None
        self.r: C = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: G = None
        self.p: A = None
        self.u: D = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

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

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

g = A("g")
i = B("i")
k = C("k")
d = D("d")
a = E("a")
e = F("e")
l = G("l")
h = H("h")

g.w = a
g.x = a
g.p = e
i.q = h
k.u = d
k.v = d
k.s = e
k.q = e
k.y = h
d.s = h
d.z = h
d.o = l
d.x = a
d.u = a
d.r = k
a.p = l
a.r = d
a.y = e
a.v = e
e.q = h
e.s = l
e.p = g
e.y = g
e.u = d
e.t = d
l.r = d
l.w = i
h.z = l
h.q = e
h.r = i
h.x = i
h.p = g
h.w = a
assert e.p.p.p.w.r.u.p.txt == "l"