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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: H = None
        self.u: H = None
        self.x: A = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: H = None
        self.o: C = None
        self.x: C = None
        self.w: C = None
        self.t: B = None
        self.y: D = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: C = None
        self.t: I = None
        self.r: B = None
        self.v: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: H = None
        self.u: H = None
        self.x: A = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: H = None
        self.o: C = None
        self.x: C = None
        self.w: C = None
        self.t: B = None
        self.y: D = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: C = None
        self.t: I = None
        self.r: B = None
        self.v: B = None
        self.txt = txt

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

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

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