class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: E = None
        self.q: I = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: F = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: I = None
        self.o: H = None
        self.z: A = None
        self.q: H = None
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: D = None
        self.w: F = None
        self.u: C = None
        self.s: D = None
        self.y: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: F = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: I = None
        self.o: H = None
        self.z: A = None
        self.q: H = None
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: D = None
        self.w: F = None
        self.u: C = None
        self.s: D = None
        self.y: J = None
        self.txt = txt

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

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

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