class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.t: H = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: A = None
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: H = None
        self.q: D = None
        self.x: D = None
        self.w: I = None
        self.p: D = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.t: H = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: A = None
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: H = None
        self.q: D = None
        self.x: D = None
        self.w: I = None
        self.p: D = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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