class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: B = None
        self.p: H = None
        self.r: D = None
        self.w: D = None
        self.y: E = None
        self.v: J = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: A = None
        self.p: J = None
        self.s: I = None
        self.y: A = None
        self.v: J = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: J = None
        self.r: G = None
        self.y: E = None
        self.u: J = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: J = None
        self.u: B = None
        self.p: F = None
        self.q: C = None
        self.y: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: F = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: F = None
        self.w: D = None
        self.y: E = None
        self.p: A = None
        self.t: G = None
        self.u: F = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

l = A("l")
f = B("f")
m = C("m")
n = D("n")
j = E("j")
b = F("b")
a = G("a")
g = H("g")
i = I("i")
d = J("d")

l.t = n
l.r = n
l.w = n
l.s = f
l.p = g
l.y = j
l.v = d
l.q = b
f.o = n
f.z = l
f.y = l
f.p = d
f.v = d
f.s = i
f.t = b
m.o = n
m.v = n
m.z = d
m.u = d
m.r = a
m.y = j
n.s = m
n.q = m
n.v = d
n.u = f
n.y = f
n.p = b
j.u = f
b.q = g
b.w = g
b.z = i
b.o = n
b.r = n
b.t = a
b.v = a
b.y = d
b.x = l
a.r = i
a.s = b
a.u = b
g.o = j
g.y = j
g.q = b
g.u = b
g.w = n
g.p = l
g.t = a
g.s = m
i.x = a
d.r = l
d.w = j
d.v = j
d.x = n
d.t = n
d.o = a
d.p = a
d.y = m
d.q = i
assert n.q.r.r.x.u.y.p.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: B = None
        self.p: H = None
        self.r: D = None
        self.w: D = None
        self.y: E = None
        self.v: J = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: A = None
        self.p: J = None
        self.s: I = None
        self.y: A = None
        self.v: J = None
        self.t: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: J = None
        self.r: G = None
        self.y: E = None
        self.u: J = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: J = None
        self.u: B = None
        self.p: F = None
        self.q: C = None
        self.y: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: F = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: F = None
        self.w: D = None
        self.y: E = None
        self.p: A = None
        self.t: G = None
        self.u: F = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

l = A("l")
f = B("f")
m = C("m")
n = D("n")
j = E("j")
b = F("b")
a = G("a")
g = H("g")
i = I("i")
d = J("d")

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