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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: G = None
        self.p: H = None
        self.w: H = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: G = None
        self.p: H = None
        self.w: H = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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