class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: G = None
        self.x: C = None
        self.w: G = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: D = None
        self.s: A = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: F = None
        self.x: H = None
        self.s: I = None
        self.u: B = None
        self.t: I = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: I = None
        self.z: F = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: H = None
        self.o: G = None
        self.z: B = None
        self.v: F = None
        self.p: D = None
        self.s: D = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: D = None
        self.s: A = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: F = None
        self.x: H = None
        self.s: I = None
        self.u: B = None
        self.t: I = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: I = None
        self.z: F = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: H = None
        self.o: G = None
        self.z: B = None
        self.v: F = None
        self.p: D = None
        self.s: D = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

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

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