class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: B = None
        self.q: E = None
        self.p: E = None
        self.v: G = None
        self.u: G = None
        self.r: A = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: B = None
        self.q: E = None
        self.p: E = None
        self.v: G = None
        self.u: G = None
        self.r: A = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: E = None
        self.txt = txt

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

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

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