class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: A = None
        self.p: G = None
        self.t: G = None
        self.q: G = None
        self.y: I = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: G = None
        self.x: H = None
        self.q: I = None
        self.w: G = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: B = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: I = None
        self.w: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: A = None
        self.p: G = None
        self.t: G = None
        self.q: G = None
        self.y: I = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: G = None
        self.x: H = None
        self.q: I = None
        self.w: G = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: B = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: I = None
        self.w: A = None
        self.txt = txt

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

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

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

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