class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: I = None
        self.v: F = None
        self.x: B = None
        self.z: B = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: D = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: F = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.z: E = None
        self.o: G = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: D = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: D = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: F = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.z: E = None
        self.o: G = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: D = None
        self.w: E = None
        self.txt = txt

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

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