class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: I = None
        self.x: H = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: A = None
        self.u: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: A = None
        self.x: D = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: H = None
        self.x: I = None
        self.q: J = None
        self.p: J = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: F = None
        self.p: I = None
        self.v: I = None
        self.w: E = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: A = None
        self.z: A = None
        self.w: B = None
        self.y: D = None
        self.t: J = None
        self.p: B = None
        self.s: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: B = None
        self.s: D = None
        self.y: D = None
        self.t: B = None
        self.txt = txt

b = A("b")
j = B("j")
a = C("a")
i = D("i")
f = E("f")
h = F("h")
d = G("d")
n = H("n")
m = I("m")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: A = None
        self.u: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: A = None
        self.x: D = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: H = None
        self.x: I = None
        self.q: J = None
        self.p: J = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: F = None
        self.p: I = None
        self.v: I = None
        self.w: E = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: A = None
        self.z: A = None
        self.w: B = None
        self.y: D = None
        self.t: J = None
        self.p: B = None
        self.s: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: B = None
        self.s: D = None
        self.y: D = None
        self.t: B = None
        self.txt = txt

b = A("b")
j = B("j")
a = C("a")
i = D("i")
f = E("f")
h = F("h")
d = G("d")
n = H("n")
m = I("m")
l = J("l")

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