class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: F = None
        self.v: B = None
        self.w: H = None
        self.p: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: B = None
        self.o: E = None
        self.p: C = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: F = None
        self.t: B = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: B = None
        self.o: E = None
        self.p: C = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: F = None
        self.t: B = None
        self.w: B = None
        self.txt = txt

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

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

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