class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: C = None
        self.t: F = None
        self.s: E = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: I = None
        self.z: H = None
        self.o: D = None
        self.v: I = None
        self.x: D = None
        self.r: I = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: A = None
        self.t: A = None
        self.p: I = None
        self.v: C = None
        self.s: G = None
        self.y: C = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: H = None
        self.r: C = None
        self.s: F = None
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: I = None
        self.z: H = None
        self.o: D = None
        self.v: I = None
        self.x: D = None
        self.r: I = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: A = None
        self.t: A = None
        self.p: I = None
        self.v: C = None
        self.s: G = None
        self.y: C = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: H = None
        self.r: C = None
        self.s: F = None
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: F = None
        self.txt = txt

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

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