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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: D = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: H = None
        self.p: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: D = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: H = None
        self.p: B = None
        self.txt = txt

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

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

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

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