class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.s: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: D = None
        self.p: I = None
        self.o: I = None
        self.z: I = None
        self.u: J = None
        self.s: J = None
        self.x: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.y: D = None
        self.u: D = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: J = None
        self.w: C = None
        self.x: D = None
        self.r: C = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: G = None
        self.q: D = None
        self.x: A = None
        self.p: B = None
        self.u: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: D = None
        self.p: I = None
        self.o: I = None
        self.z: I = None
        self.u: J = None
        self.s: J = None
        self.x: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.y: D = None
        self.u: D = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: J = None
        self.w: C = None
        self.x: D = None
        self.r: C = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: G = None
        self.q: D = None
        self.x: A = None
        self.p: B = None
        self.u: H = None
        self.txt = txt

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

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

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