class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: I = None
        self.p: I = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: E = None
        self.t: G = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: G = None
        self.q: D = None
        self.w: D = None
        self.u: F = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.z: G = None
        self.p: D = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: E = None
        self.t: G = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: G = None
        self.q: D = None
        self.w: D = None
        self.u: F = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.z: G = None
        self.p: D = None
        self.y: D = None
        self.txt = txt

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

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