class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: F = None
        self.y: F = None
        self.v: I = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.x: A = None
        self.u: F = None
        self.s: I = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: F = None
        self.s: H = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: F = None
        self.y: F = None
        self.v: I = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.x: A = None
        self.u: F = None
        self.s: I = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: F = None
        self.s: H = None
        self.u: E = None
        self.txt = txt

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

e.u = g
e.x = n
e.s = l
l.q = n
l.o = n
l.y = n
l.x = n
l.v = h
k.o = n
k.u = n
k.t = n
k.w = l
k.x = e
k.s = h
g.w = j
g.p = j
g.q = c
g.t = c
g.y = i
g.z = n
g.x = l
j.s = n
n.z = k
n.w = k
n.x = e
n.s = e
n.y = e
n.o = g
n.u = j
n.v = h
i.y = e
i.q = l
c.w = h
c.y = l
h.x = j
h.u = j
h.w = n
h.s = c
d.u = g
d.x = n
d.s = l
assert g.q.y.q.v.txt == "h"