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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: E = None
        self.p: B = None
        self.r: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: A = None
        self.q: E = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

m = A("m")
n = B("n")
a = C("a")
c = D("c")
k = E("k")
g = F("g")
l = G("l")
e = H("e")
h = A("h")

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: E = None
        self.p: B = None
        self.r: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: A = None
        self.q: E = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: C = None
        self.r: C = None
        self.txt = txt

m = A("m")
n = B("n")
a = C("a")
c = D("c")
k = E("k")
g = F("g")
l = G("l")
e = H("e")
h = A("h")

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