class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: B = None
        self.s: E = None
        self.y: H = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: C = None
        self.q: H = None
        self.w: E = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: A = None
        self.s: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: B = None
        self.s: E = None
        self.y: H = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: C = None
        self.q: H = None
        self.w: E = None
        self.o: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: A = None
        self.s: H = None
        self.txt = txt

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

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