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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: C = None
        self.r: D = None
        self.x: I = None
        self.v: G = None
        self.p: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: D = None
        self.q: F = None
        self.z: A = None
        self.t: B = None
        self.p: I = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: C = None
        self.r: D = None
        self.x: I = None
        self.v: G = None
        self.p: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: D = None
        self.q: F = None
        self.z: A = None
        self.t: B = None
        self.p: I = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.txt = txt

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

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