class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: F = None
        self.u: E = None
        self.y: B = None
        self.w: G = None
        self.q: F = None
        self.t: H = None
        self.r: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: J = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: J = None
        self.v: F = None
        self.z: E = None
        self.t: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: J = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: J = None
        self.v: F = None
        self.z: E = None
        self.t: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

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