class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: B = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: I = None
        self.y: D = None
        self.w: D = None
        self.s: C = None
        self.o: D = None
        self.x: J = None
        self.t: E = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: F = None
        self.r: F = None
        self.x: G = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: A = None
        self.z: D = None
        self.v: I = None
        self.q: H = None
        self.o: A = None
        self.t: H = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: C = None
        self.y: F = None
        self.z: E = None
        self.u: C = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: J = None
        self.t: A = None
        self.s: A = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: I = None
        self.y: D = None
        self.w: D = None
        self.s: C = None
        self.o: D = None
        self.x: J = None
        self.t: E = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: F = None
        self.r: F = None
        self.x: G = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: A = None
        self.z: D = None
        self.v: I = None
        self.q: H = None
        self.o: A = None
        self.t: H = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: C = None
        self.y: F = None
        self.z: E = None
        self.u: C = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: J = None
        self.t: A = None
        self.s: A = None
        self.p: G = None
        self.txt = txt

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

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

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

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