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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: A = None
        self.s: B = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

k = A("k")
h = B("h")
i = C("i")
f = D("f")
m = E("m")
e = F("e")
j = G("j")
c = G("c")
b = B("b")
l = C("l")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: A = None
        self.s: B = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

k = A("k")
h = B("h")
i = C("i")
f = D("f")
m = E("m")
e = F("e")
j = G("j")
c = G("c")
b = B("b")
l = C("l")

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