class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.t: H = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: D = None
        self.q: E = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: E = None
        self.u: H = None
        self.y: I = None
        self.x: H = None
        self.s: B = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: A = None
        self.s: I = None
        self.y: E = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: A = None
        self.u: F = None
        self.v: E = None
        self.s: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: D = None
        self.q: E = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: E = None
        self.u: H = None
        self.y: I = None
        self.x: H = None
        self.s: B = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: A = None
        self.s: I = None
        self.y: E = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: A = None
        self.u: F = None
        self.v: E = None
        self.s: H = None
        self.txt = txt

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

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