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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: A = None
        self.w: A = None
        self.s: C = None
        self.t: C = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: D = None
        self.u: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: D = None
        self.p: F = None
        self.z: C = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: C = None
        self.x: G = None
        self.v: G = None
        self.t: D = None
        self.y: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: A = None
        self.w: A = None
        self.s: C = None
        self.t: C = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: D = None
        self.u: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: D = None
        self.p: F = None
        self.z: C = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: C = None
        self.x: G = None
        self.v: G = None
        self.t: D = None
        self.y: F = None
        self.txt = txt

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

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