class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: E = None
        self.v: D = None
        self.p: C = None
        self.o: E = None
        self.s: E = None
        self.w: I = None
        self.q: E = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: I = None
        self.q: C = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: F = None
        self.r: B = None
        self.u: B = None
        self.q: D = None
        self.x: C = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: I = None
        self.q: C = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: F = None
        self.r: B = None
        self.u: B = None
        self.q: D = None
        self.x: C = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

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

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