class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: D = None
        self.w: C = None
        self.y: D = None
        self.o: I = None
        self.v: B = None
        self.r: J = None
        self.p: G = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: J = None
        self.u: F = None
        self.v: I = None
        self.t: F = None
        self.s: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: I = None
        self.r: I = None
        self.t: J = None
        self.p: B = None
        self.v: J = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: A = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: H = None
        self.t: G = None
        self.o: E = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.q: H = None
        self.w: I = None
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: C = None
        self.z: I = None
        self.p: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: J = None
        self.u: F = None
        self.v: I = None
        self.t: F = None
        self.s: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: I = None
        self.r: I = None
        self.t: J = None
        self.p: B = None
        self.v: J = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: A = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: H = None
        self.t: G = None
        self.o: E = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.q: H = None
        self.w: I = None
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: C = None
        self.z: I = None
        self.p: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: D = None
        self.txt = txt

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

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