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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: D = None
        self.u: J = None
        self.s: G = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: B = None
        self.x: J = None
        self.w: J = None
        self.s: G = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: F = None
        self.t: C = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: J = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: A = None
        self.p: H = None
        self.w: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: D = None
        self.u: J = None
        self.s: G = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: B = None
        self.x: J = None
        self.w: J = None
        self.s: G = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: F = None
        self.t: C = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: J = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: A = None
        self.p: H = None
        self.w: G = None
        self.txt = txt

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

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

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