class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: C = None
        self.q: I = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: H = None
        self.w: E = None
        self.q: H = None
        self.r: A = None
        self.o: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: G = None
        self.p: H = None
        self.z: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: H = None
        self.w: E = None
        self.q: H = None
        self.r: A = None
        self.o: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: G = None
        self.p: H = None
        self.z: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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