class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: G = None
        self.w: B = None
        self.x: D = None
        self.t: F = None
        self.z: E = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: F = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: A = None
        self.w: E = None
        self.y: D = None
        self.s: E = None
        self.q: G = None
        self.z: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: H = None
        self.q: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: F = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: A = None
        self.w: E = None
        self.y: D = None
        self.s: E = None
        self.q: G = None
        self.z: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: H = None
        self.q: D = None
        self.txt = txt

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

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

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