class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: B = None
        self.v: C = None
        self.o: D = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: C = None
        self.r: G = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: B = None
        self.p: G = None
        self.u: B = None
        self.x: B = None
        self.v: J = None
        self.q: A = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: I = None
        self.w: D = None
        self.y: H = None
        self.t: I = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: J = None
        self.s: H = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: C = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: J = None
        self.w: J = None
        self.x: H = None
        self.p: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: C = None
        self.r: G = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: B = None
        self.p: G = None
        self.u: B = None
        self.x: B = None
        self.v: J = None
        self.q: A = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: I = None
        self.w: D = None
        self.y: H = None
        self.t: I = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: J = None
        self.s: H = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: C = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: J = None
        self.w: J = None
        self.x: H = None
        self.p: A = None
        self.txt = txt

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

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

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