class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: I = None
        self.t: C = None
        self.p: D = None
        self.s: G = None
        self.r: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: H = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: B = None
        self.w: H = None
        self.r: A = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: D = None
        self.y: D = None
        self.o: D = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: H = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: B = None
        self.w: H = None
        self.r: A = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: D = None
        self.y: D = None
        self.o: D = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

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

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