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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: D = None
        self.t: D = None
        self.u: D = None
        self.x: E = None
        self.v: B = None
        self.o: I = None
        self.z: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: F = None
        self.t: A = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

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

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

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

b.v = h
b.u = l
b.r = g
b.t = g
b.x = j
b.y = j
b.s = e
l.q = e
l.o = n
l.t = n
l.r = b
l.u = g
e.q = k
e.p = g
e.t = g
e.u = g
e.x = a
e.v = l
e.o = h
e.z = j
g.v = n
a.x = h
a.v = l
a.t = j
j.y = l
j.r = k
k.y = n
k.x = j
k.t = b
k.u = b
k.z = b
n.x = l
n.r = e
n.q = a
h.u = l
h.t = j
h.q = e
h.r = e
h.o = g
h.w = b
h.v = n
assert h.t.y.u.v.q.t.y.u.v.txt == "
class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: B = None
        self.r: D = None
        self.x: F = None
        self.s: C = None
        self.y: F = None
        self.t: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: D = None
        self.t: D = None
        self.u: D = None
        self.x: E = None
        self.v: B = None
        self.o: I = None
        self.z: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: F = None
        self.t: A = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

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

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

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

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