class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: G = None
        self.t: F = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: F = None
        self.r: H = None
        self.o: H = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: F = None
        self.r: H = None
        self.o: H = None
        self.q: B = None
        self.txt = txt

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

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