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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: G = None
        self.o: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: G = None
        self.o: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: A = None
        self.txt = txt

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

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