class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: F = None
        self.p: I = None
        self.t: E = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: F = None
        self.o: F = None
        self.y: I = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: G = None
        self.s: A = None
        self.o: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.o: C = None
        self.v: B = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: F = None
        self.o: F = None
        self.y: I = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: G = None
        self.s: A = None
        self.o: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.o: C = None
        self.v: B = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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