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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: G = None
        self.v: H = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: D = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

i = A("i")
h = B("h")
m = C("m")
a = D("a")
f = E("f")
e = F("e")
k = G("k")
j = H("j")
d = D("d")

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: G = None
        self.v: H = None
        self.o: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: D = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

i = A("i")
h = B("h")
m = C("m")
a = D("a")
f = E("f")
e = F("e")
k = G("k")
j = H("j")
d = D("d")

i.t = e
i.r = k
i.w = f
h.p = m
m.y = j
m.s = h
m.v = h
m.o = a
m.w = f
m.q = e
a.u = j
a.o = m
a.s = m
a.v = f
a.q = h
a.y = h
a.p = e
f.z = e
e.u = f
e.o = f
e.q = k
e.v = j
k.w = i
j.r = f
j.w = f
j.p = f
j.o = d
d.u = j
d.o = m
d.s = m
d.v = f
d.q = h
d.y = h
d.p = e
assert h.p.y.o.o.y.txt == "j"