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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: F = None
        self.v: E = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: B = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: B = None
        self.o: D = None
        self.p: A = None
        self.u: I = None
        self.t: B = None
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: I = None
        self.s: I = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: D = None
        self.w: D = None
        self.s: B = None
        self.txt = txt

e = A("e")
l = B("l")
d = C("d")
m = D("m")
j = E("j")
k = F("k")
h = G("h")
f = H("f")
a = I("a")
g = F("g")

e.w = h
l.y = a
l.s = a
l.z = f
l.p = j
l.v = d
l.u = d
l.o = e
l.x = k
l.w = h
d.y = j
d.v = j
d.q = g
d.r = l
m.o = k
j.w = h
j.u = h
j.v = l
k.y = g
k.s = l
k.t = l
k.o = m
k.p = e
k.u = a
k.q = j
h.o = d
h.v = l
f.q = d
f.u = a
f.s = a
f.r = g
a.v = e
a.r = m
a.w = m
a.s = l
g.y = k
g.s = l
g.t = l
g.o = m
g.p = e
g.u = a
g.q = j
assert e.w.o.y.u.v.s.v.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: F = None
        self.v: E = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: B = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: B = None
        self.o: D = None
        self.p: A = None
        self.u: I = None
        self.t: B = None
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: I = None
        self.s: I = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: D = None
        self.w: D = None
        self.s: B = None
        self.txt = txt

e = A("e")
l = B("l")
d = C("d")
m = D("m")
j = E("j")
k = F("k")
h = G("h")
f = H("f")
a = I("a")
g = F("g")

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