class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: C = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: A = None
        self.r: A = None
        self.q: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: I = None
        self.u: F = None
        self.w: A = None
        self.y: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: D = None
        self.s: D = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: A = None
        self.r: A = None
        self.q: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: I = None
        self.u: F = None
        self.w: A = None
        self.y: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: D = None
        self.s: D = None
        self.z: D = None
        self.txt = txt

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

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