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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: F = None
        self.s: E = None
        self.q: E = None
        self.r: F = None
        self.w: E = None
        self.v: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: G = None
        self.z: E = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: B = None
        self.r: D = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: F = None
        self.s: E = None
        self.q: E = None
        self.r: F = None
        self.w: E = None
        self.v: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: G = None
        self.z: E = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: B = None
        self.r: D = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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