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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: E = None
        self.p: G = None
        self.v: C = None
        self.u: B = None
        self.y: B = None
        self.z: I = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: E = None
        self.p: G = None
        self.v: C = None
        self.u: B = None
        self.y: B = None
        self.z: I = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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