class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: C = None
        self.x: G = None
        self.u: F = None
        self.q: E = None
        self.z: H = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: E = None
        self.w: H = None
        self.y: E = None
        self.q: G = None
        self.t: D = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: D = None
        self.v: D = None
        self.u: C = None
        self.t: G = None
        self.y: F = None
        self.p: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: E = None
        self.t: D = None
        self.q: D = None
        self.z: G = None
        self.x: D = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: E = None
        self.w: H = None
        self.y: E = None
        self.q: G = None
        self.t: D = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: D = None
        self.v: D = None
        self.u: C = None
        self.t: G = None
        self.y: F = None
        self.p: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: E = None
        self.t: D = None
        self.q: D = None
        self.z: G = None
        self.x: D = None
        self.o: B = None
        self.txt = txt

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

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

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