class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.z: G = None
        self.p: C = None
        self.t: C = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: B = None
        self.r: E = None
        self.y: H = None
        self.w: A = None
        self.s: I = None
        self.txt = txt

j = A("j")
b = B("b")
c = C("c")
i = D("i")
h = E("h")
m = F("m")
l = G("l")
a = H("a")
d = I("d")
k = J("k")

j.y = k
j.z = l
j.p = c
j.t = c
j.r = a
b.r = j
b.q = j
b.v = h
b.p = k
b.z = i
b.y = d
b.o = c
c.y = b
c.p = b
c.q = m
c.t = h
c.r = h
i.p = a
h.w = m
h.q = i
m.o = k
m.v = i
m.q = l
l.t = d
a.q = k
a.z = d
a.u = d
a.r = c
a.y = b
a.p = l
a.v = j
a.t = j
a.x = i
a.w = i
d.x = j
k.z = i
k.x = b
k.r = h
k.y = a
k.w = j
k.s = d
assert j.y.x.v.w.v.p.u.x.txt == "
class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.z: G = None
        self.p: C = None
        self.t: C = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: B = None
        self.r: E = None
        self.y: H = None
        self.w: A = None
        self.s: I = None
        self.txt = txt

j = A("j")
b = B("b")
c = C("c")
i = D("i")
h = E("h")
m = F("m")
l = G("l")
a = H("a")
d = I("d")
k = J("k")

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