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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: F = None
        self.p: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: A = None
        self.o: A = None
        self.u: H = None
        self.v: G = None
        self.t: J = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: B = None
        self.w: B = None
        self.o: A = None
        self.v: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: H = None
        self.z: H = None
        self.v: C = None
        self.o: F = None
        self.x: J = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: D = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: F = None
        self.p: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: A = None
        self.o: A = None
        self.u: H = None
        self.v: G = None
        self.t: J = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: B = None
        self.w: B = None
        self.o: A = None
        self.v: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: H = None
        self.z: H = None
        self.v: C = None
        self.o: F = None
        self.x: J = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: D = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

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

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