class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: B = None
        self.z: C = None
        self.r: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: C = None
        self.v: G = None
        self.u: G = None
        self.w: B = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.u: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: C = None
        self.v: G = None
        self.u: G = None
        self.w: B = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.u: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

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

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