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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: C = None
        self.u: I = None
        self.w: D = None
        self.v: D = None
        self.p: I = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: C = None
        self.u: I = None
        self.w: D = None
        self.v: D = None
        self.p: I = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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