class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: J = None
        self.p: E = None
        self.t: A = None
        self.u: J = None
        self.z: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.p: H = None
        self.y: E = None
        self.t: C = None
        self.u: I = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: I = None
        self.txt = txt

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

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

j = A("j")
b = B("b")
h = C("h")
k = D("k")
a = E("a")
g = F("g")
e = G("e")
i = H("i")
c = I("c")
f = J("f")

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

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: J = None
        self.p: E = None
        self.t: A = None
        self.u: J = None
        self.z: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.p: H = None
        self.y: E = None
        self.t: C = None
        self.u: I = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: I = None
        self.txt = txt

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

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

j = A("j")
b = B("b")
h = C("h")
k = D("k")
a = E("a")
g = F("g")
e = G("e")
i = H("i")
c = I("c")
f = J("f")

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