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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: C = None
        self.z: F = None
        self.t: H = None
        self.q: D = None
        self.s: A = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: A = None
        self.q: C = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: G = None
        self.x: C = None
        self.v: G = None
        self.u: H = None
        self.r: F = None
        self.t: H = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: A = None
        self.t: C = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: B = None
        self.t: E = None
        self.z: C = None
        self.x: B = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: C = None
        self.z: F = None
        self.t: H = None
        self.q: D = None
        self.s: A = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: A = None
        self.q: C = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: G = None
        self.x: C = None
        self.v: G = None
        self.u: H = None
        self.r: F = None
        self.t: H = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: A = None
        self.t: C = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: B = None
        self.t: E = None
        self.z: C = None
        self.x: B = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

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

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