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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: B = None
        self.x: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: I = None
        self.r: C = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: J = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: J = None
        self.y: A = None
        self.v: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: I = None
        self.x: F = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: B = None
        self.x: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: I = None
        self.r: C = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: J = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: J = None
        self.y: A = None
        self.v: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: I = None
        self.x: F = None
        self.t: B = None
        self.txt = txt

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

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