class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: H = None
        self.o: I = None
        self.p: D = None
        self.w: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: H = None
        self.q: H = None
        self.x: J = None
        self.v: D = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: F = None
        self.x: H = None
        self.z: F = None
        self.w: C = None
        self.v: C = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: B = None
        self.w: D = None
        self.s: B = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: J = None
        self.p: D = None
        self.t: I = None
        self.u: I = None
        self.r: C = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.y: B = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: D = None
        self.t: B = None
        self.u: A = None
        self.r: A = None
        self.z: I = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: I = None
        self.u: D = None
        self.t: G = None
        self.z: H = None
        self.x: H = None
        self.s: G = None
        self.txt = txt

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

g.t = n
g.s = m
g.o = b
g.w = b
g.p = i
l.t = m
l.p = f
l.w = g
l.v = i
l.r = i
l.o = b
l.s = b
l.z = k
l.q = k
l.y = n
f.u = c
f.t = m
f.q = m
f.x = e
f.v = i
f.y = k
i.o = m
i.x = m
i.s = n
i.z = n
i.w = f
i.v = f
i.r = c
k.x = l
k.p = l
k.s = l
k.w = i
k.u = m
n.s = e
n.v = e
n.p = i
n.t = b
n.u = b
n.r = f
n.q = k
c.t = l
c.y = l
c.v = k
c.r = i
m.x = k
m.o = i
m.p = i
m.t = l
m.u = g
m.r = g
m.z = b
b.q = f
b.s = f
e.o = k
e.q = b
e.u = i
e.t = c
e.s = c
e.z = m
e.x = m
assert n.s.u.r.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: H = None
        self.o: I = None
        self.p: D = None
        self.w: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: H = None
        self.q: H = None
        self.x: J = None
        self.v: D = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: F = None
        self.x: H = None
        self.z: F = None
        self.w: C = None
        self.v: C = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: B = None
        self.w: D = None
        self.s: B = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: J = None
        self.p: D = None
        self.t: I = None
        self.u: I = None
        self.r: C = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.y: B = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: D = None
        self.t: B = None
        self.u: A = None
        self.r: A = None
        self.z: I = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: I = None
        self.u: D = None
        self.t: G = None
        self.z: H = None
        self.x: H = None
        self.s: G = None
        self.txt = txt

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

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