class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.t: F = None
        self.w: E = None
        self.x: E = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.u: C = None
        self.o: F = None
        self.x: C = None
        self.txt = txt

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

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

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

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

j = A("j")
i = B("i")
l = C("l")
f = D("f")
k = E("k")
h = F("h")
a = G("a")
d = H("d")
b = B("b")

j.v = h
j.t = h
j.u = i
j.w = k
j.x = k
j.z = f
i.s = b
i.p = a
l.v = h
l.w = h
l.s = d
f.q = h
f.o = h
f.w = j
f.u = l
f.x = l
k.s = l
k.p = l
k.x = h
k.t = h
k.v = h
k.z = a
k.o = j
h.p = b
h.r = f
h.w = i
a.q = j
a.v = h
a.u = h
a.p = k
a.y = l
d.o = h
d.x = h
d.y = f
d.w = f
d.s = j
b.s = i
b.p = a
assert a.u.r.x.s.o.r.u.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.t: F = None
        self.w: E = None
        self.x: E = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.u: C = None
        self.o: F = None
        self.x: C = None
        self.txt = txt

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

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

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

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

j = A("j")
i = B("i")
l = C("l")
f = D("f")
k = E("k")
h = F("h")
a = G("a")
d = H("d")
b = B("b")

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