class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: E = None
        self.u: B = None
        self.v: B = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: F = None
        self.o: C = None
        self.u: B = None
        self.z: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: F = None
        self.o: C = None
        self.u: B = None
        self.z: B = None
        self.txt = txt

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

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

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