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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: B = None
        self.z: B = None
        self.q: E = None
        self.p: G = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: A = None
        self.u: F = None
        self.z: B = None
        self.v: G = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: C = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: D = None
        self.r: B = None
        self.y: B = None
        self.v: E = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: B = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: B = None
        self.z: B = None
        self.q: E = None
        self.p: G = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: A = None
        self.u: F = None
        self.z: B = None
        self.v: G = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: C = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: D = None
        self.r: B = None
        self.y: B = None
        self.v: E = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: B = None
        self.r: F = None
        self.txt = txt

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

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