class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: G = None
        self.z: H = None
        self.s: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: D = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.x: F = None
        self.s: D = None
        self.w: B = None
        self.t: D = None
        self.v: C = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.v: D = None
        self.txt = txt

j = A("j")
d = B("d")
a = C("a")
b = D("b")
n = E("n")
h = F("h")
k = G("k")
c = H("c")
l = I("l")

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: G = None
        self.z: H = None
        self.s: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: D = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.x: F = None
        self.s: D = None
        self.w: B = None
        self.t: D = None
        self.v: C = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.v: D = None
        self.txt = txt

j = A("j")
d = B("d")
a = C("a")
b = D("b")
n = E("n")
h = F("h")
k = G("k")
c = H("c")
l = I("l")

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