class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: D = None
        self.x: F = None
        self.r: C = None
        self.o: H = None
        self.s: H = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: A = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: A = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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