class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: F = None
        self.x: A = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: A = None
        self.o: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: F = None
        self.x: A = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: A = None
        self.o: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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