class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: G = None
        self.u: G = None
        self.z: G = None
        self.o: D = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: G = None
        self.u: A = None
        self.r: F = None
        self.q: A = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: E = None
        self.r: A = None
        self.t: C = None
        self.z: G = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: B = None
        self.o: C = None
        self.w: H = None
        self.z: H = None
        self.v: D = None
        self.s: G = None
        self.p: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: G = None
        self.u: A = None
        self.r: F = None
        self.q: A = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: E = None
        self.r: A = None
        self.t: C = None
        self.z: G = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: B = None
        self.o: C = None
        self.w: H = None
        self.z: H = None
        self.v: D = None
        self.s: G = None
        self.p: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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