class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: I = None
        self.v: B = None
        self.u: B = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: F = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: C = None
        self.r: J = None
        self.y: J = None
        self.o: A = None
        self.t: F = None
        self.v: A = None
        self.w: J = None
        self.z: J = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: A = None
        self.w: D = None
        self.v: J = None
        self.q: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: H = None
        self.y: A = None
        self.w: E = None
        self.t: F = None
        self.q: B = None
        self.p: H = None
        self.z: I = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: I = None
        self.v: B = None
        self.u: B = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: F = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: C = None
        self.r: J = None
        self.y: J = None
        self.o: A = None
        self.t: F = None
        self.v: A = None
        self.w: J = None
        self.z: J = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: A = None
        self.w: D = None
        self.v: J = None
        self.q: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: H = None
        self.y: A = None
        self.w: E = None
        self.t: F = None
        self.q: B = None
        self.p: H = None
        self.z: I = None
        self.v: B = None
        self.txt = txt

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

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