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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: I = None
        self.u: C = None
        self.t: G = None
        self.o: C = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: I = None
        self.u: C = None
        self.t: G = None
        self.o: C = None
        self.r: I = None
        self.txt = txt

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

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

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