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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: F = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: H = None
        self.y: G = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: F = None
        self.y: B = None
        self.t: B = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: H = None
        self.t: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: F = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: F = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: H = None
        self.y: G = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: F = None
        self.y: B = None
        self.t: B = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: H = None
        self.t: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: F = None
        self.w: H = None
        self.txt = txt

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

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