class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: I = None
        self.v: E = None
        self.w: E = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: F = None
        self.w: H = None
        self.x: I = None
        self.t: D = None
        self.o: H = None
        self.s: H = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: I = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: H = None
        self.t: B = None
        self.v: E = None
        self.q: G = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: H = None
        self.s: C = None
        self.t: G = None
        self.v: C = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: C = None
        self.u: H = None
        self.q: E = None
        self.y: F = None
        self.z: I = None
        self.o: I = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: B = None
        self.r: B = None
        self.w: I = None
        self.s: G = None
        self.z: G = None
        self.t: A = None
        self.q: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: F = None
        self.w: H = None
        self.x: I = None
        self.t: D = None
        self.o: H = None
        self.s: H = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: I = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: H = None
        self.t: B = None
        self.v: E = None
        self.q: G = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: H = None
        self.s: C = None
        self.t: G = None
        self.v: C = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: C = None
        self.u: H = None
        self.q: E = None
        self.y: F = None
        self.z: I = None
        self.o: I = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: B = None
        self.r: B = None
        self.w: I = None
        self.s: G = None
        self.z: G = None
        self.t: A = None
        self.q: I = None
        self.txt = txt

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

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

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