class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: D = None
        self.o: B = None
        self.r: H = None
        self.q: H = None
        self.w: I = None
        self.t: B = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: F = None
        self.w: G = None
        self.t: A = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: A = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: G = None
        self.t: G = None
        self.s: G = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: A = None
        self.w: D = None
        self.x: F = None
        self.v: F = None
        self.t: D = None
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: G = None
        self.z: H = None
        self.w: G = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: F = None
        self.w: G = None
        self.t: A = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: A = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: G = None
        self.t: G = None
        self.s: G = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: A = None
        self.w: D = None
        self.x: F = None
        self.v: F = None
        self.t: D = None
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: G = None
        self.z: H = None
        self.w: G = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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