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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: D = None
        self.s: F = None
        self.r: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: D = None
        self.p: F = None
        self.w: B = None
        self.o: B = None
        self.q: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: B = None
        self.p: B = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: D = None
        self.s: F = None
        self.r: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: D = None
        self.p: F = None
        self.w: B = None
        self.o: B = None
        self.q: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: B = None
        self.p: B = None
        self.v: A = None
        self.txt = txt

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

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