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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: B = None
        self.o: D = None
        self.p: E = None
        self.w: I = None
        self.v: I = None
        self.r: C = None
        self.txt = txt

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

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

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

i = A("i")
e = B("e")
m = C("m")
h = D("h")
a = E("a")
f = F("f")
g = G("g")
c = H("c")
j = I("j")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: B = None
        self.o: D = None
        self.p: E = None
        self.w: I = None
        self.v: I = None
        self.r: C = None
        self.txt = txt

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

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

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

i = A("i")
e = B("e")
m = C("m")
h = D("h")
a = E("a")
f = F("f")
g = G("g")
c = H("c")
j = I("j")

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