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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: H = None
        self.x: D = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: B = None
        self.p: H = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: A = None
        self.z: E = None
        self.u: B = None
        self.x: I = None
        self.w: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: H = None
        self.x: D = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: B = None
        self.p: H = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: A = None
        self.z: E = None
        self.u: B = None
        self.x: I = None
        self.w: A = None
        self.txt = txt

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

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