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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.y: G = None
        self.p: F = None
        self.t: F = None
        self.o: G = None
        self.q: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: J = None
        self.o: A = None
        self.q: E = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: F = None
        self.p: C = None
        self.w: E = None
        self.o: A = None
        self.s: F = None
        self.u: C = None
        self.t: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: F = None
        self.s: F = None
        self.p: B = None
        self.w: A = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.y: G = None
        self.p: F = None
        self.t: F = None
        self.o: G = None
        self.q: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: J = None
        self.o: A = None
        self.q: E = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: F = None
        self.p: C = None
        self.w: E = None
        self.o: A = None
        self.s: F = None
        self.u: C = None
        self.t: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: F = None
        self.s: F = None
        self.p: B = None
        self.w: A = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

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