class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: E = None
        self.p: F = None
        self.v: D = None
        self.x: I = None
        self.y: D = None
        self.r: E = None
        self.q: J = None
        self.t: H = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: G = None
        self.z: I = None
        self.w: I = None
        self.t: E = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: J = None
        self.p: C = None
        self.s: H = None
        self.o: A = None
        self.y: H = None
        self.q: D = None
        self.x: A = None
        self.v: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: A = None
        self.q: J = None
        self.y: J = None
        self.v: H = None
        self.u: G = None
        self.r: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: E = None
        self.p: E = None
        self.u: D = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: I = None
        self.o: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: G = None
        self.z: I = None
        self.w: I = None
        self.t: E = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: J = None
        self.p: C = None
        self.s: H = None
        self.o: A = None
        self.y: H = None
        self.q: D = None
        self.x: A = None
        self.v: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: A = None
        self.q: J = None
        self.y: J = None
        self.v: H = None
        self.u: G = None
        self.r: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.p: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: E = None
        self.p: E = None
        self.u: D = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: I = None
        self.o: I = None
        self.txt = txt

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

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