class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: E = None
        self.w: G = None
        self.u: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: E = None
        self.v: G = None
        self.z: H = None
        self.x: H = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.o: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: E = None
        self.r: B = None
        self.o: H = None
        self.z: A = None
        self.t: A = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: E = None
        self.v: G = None
        self.z: H = None
        self.x: H = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.o: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: E = None
        self.r: B = None
        self.o: H = None
        self.z: A = None
        self.t: A = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: D = None
        self.txt = txt

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

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