class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: J = None
        self.y: C = None
        self.r: B = None
        self.s: E = None
        self.q: D = None
        self.t: E = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: C = None
        self.o: J = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: G = None
        self.w: G = None
        self.v: C = None
        self.y: I = None
        self.s: G = None
        self.x: G = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: E = None
        self.y: A = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: H = None
        self.o: A = None
        self.z: A = None
        self.s: D = None
        self.txt = txt

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

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

g.o = d
g.u = d
g.w = j
g.y = i
g.r = c
g.s = f
g.t = f
g.q = n
c.x = h
c.p = n
c.u = n
c.v = k
c.t = k
c.z = f
c.w = i
i.v = c
i.z = c
i.r = g
n.t = a
f.r = d
f.p = i
f.o = j
f.w = k
d.q = f
d.r = k
d.w = k
d.s = k
d.x = k
d.v = i
d.y = a
d.z = a
k.w = f
h.u = a
h.o = f
h.y = g
h.s = c
h.q = n
a.y = h
a.x = h
a.o = g
a.z = g
a.s = n
j.s = h
j.u = n
j.z = n
j.o = f
j.t = f
j.r = c
j.x = a
j.v = i
j.q = d
assert i.r.s.o.r.u.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: J = None
        self.y: C = None
        self.r: B = None
        self.s: E = None
        self.q: D = None
        self.t: E = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: C = None
        self.o: J = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: G = None
        self.w: G = None
        self.v: C = None
        self.y: I = None
        self.s: G = None
        self.x: G = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: E = None
        self.y: A = None
        self.s: B = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: H = None
        self.o: A = None
        self.z: A = None
        self.s: D = None
        self.txt = txt

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

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

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