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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: G = None
        self.x: D = None
        self.w: A = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.z: C = None
        self.o: C = None
        self.p: F = None
        self.r: F = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: I = None
        self.x: H = None
        self.v: H = None
        self.y: D = None
        self.z: I = None
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: G = None
        self.q: B = None
        self.y: H = None
        self.u: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: G = None
        self.x: D = None
        self.w: A = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.z: C = None
        self.o: C = None
        self.p: F = None
        self.r: F = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: I = None
        self.x: H = None
        self.v: H = None
        self.y: D = None
        self.z: I = None
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: G = None
        self.q: B = None
        self.y: H = None
        self.u: H = None
        self.txt = txt

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

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