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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: B = None
        self.w: E = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: B = None
        self.s: A = None
        self.o: A = None
        self.y: I = None
        self.p: G = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: A = None
        self.v: D = None
        self.q: I = None
        self.x: G = None
        self.z: A = None
        self.s: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: B = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: B = None
        self.w: E = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: B = None
        self.s: A = None
        self.o: A = None
        self.y: I = None
        self.p: G = None
        self.z: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: A = None
        self.v: D = None
        self.q: I = None
        self.x: G = None
        self.z: A = None
        self.s: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: B = None
        self.w: G = None
        self.txt = txt

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

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