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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: I = None
        self.y: G = None
        self.o: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: F = None
        self.s: A = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: B = None
        self.p: E = None
        self.y: H = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.x: I = None
        self.s: I = None
        self.t: C = None
        self.u: F = None
        self.v: C = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: G = None
        self.z: D = None
        self.u: E = None
        self.w: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: I = None
        self.y: G = None
        self.o: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: F = None
        self.s: A = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: B = None
        self.p: E = None
        self.y: H = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.x: I = None
        self.s: I = None
        self.t: C = None
        self.u: F = None
        self.v: C = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: G = None
        self.z: D = None
        self.u: E = None
        self.w: C = None
        self.txt = txt

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

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

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