class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: E = None
        self.s: A = None
        self.p: I = None
        self.x: E = None
        self.t: I = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: A = None
        self.v: C = None
        self.p: I = None
        self.z: G = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: C = None
        self.s: A = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: E = None
        self.s: A = None
        self.p: I = None
        self.x: E = None
        self.t: I = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: A = None
        self.v: C = None
        self.p: I = None
        self.z: G = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: C = None
        self.s: A = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: B = None
        self.txt = txt

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

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