class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: H = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: A = None
        self.o: G = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.p: D = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: A = None
        self.r: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: A = None
        self.o: G = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.p: D = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: A = None
        self.r: E = None
        self.u: C = None
        self.txt = txt

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

j.q = d
j.v = d
j.u = e
j.z = i
m.x = e
m.r = j
i.y = n
i.w = n
i.u = b
i.p = k
i.q = k
n.r = j
n.t = j
n.o = b
n.p = k
n.w = k
k.t = e
k.v = i
d.o = b
d.t = b
d.s = m
d.p = n
d.v = j
b.u = e
b.r = d
e.v = i
e.u = i
e.t = j
e.r = k
assert j.q.v.q.s.x.t.u.v.txt == "i"