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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: C = None
        self.u: G = None
        self.v: D = None
        self.p: E = None
        self.s: G = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: G = None
        self.s: H = None
        self.p: A = None
        self.o: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.s: C = None
        self.x: E = None
        self.z: E = None
        self.v: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: C = None
        self.u: G = None
        self.v: D = None
        self.p: E = None
        self.s: G = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: G = None
        self.s: H = None
        self.p: A = None
        self.o: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.s: C = None
        self.x: E = None
        self.z: E = None
        self.v: A = None
        self.txt = txt

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

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

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

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