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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: E = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: C = None
        self.w: G = None
        self.v: C = None
        self.r: B = None
        self.y: H = None
        self.t: G = None
        self.p: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: G = None
        self.z: A = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: D = None
        self.p: F = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: D = None
        self.u: E = None
        self.r: B = None
        self.t: D = None
        self.p: I = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: G = None
        self.y: A = None
        self.w: E = None
        self.t: H = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: E = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: C = None
        self.w: G = None
        self.v: C = None
        self.r: B = None
        self.y: H = None
        self.t: G = None
        self.p: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: G = None
        self.z: A = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: D = None
        self.p: F = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: D = None
        self.u: E = None
        self.r: B = None
        self.t: D = None
        self.p: I = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: G = None
        self.y: A = None
        self.w: E = None
        self.t: H = None
        self.r: E = None
        self.txt = txt

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

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