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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: F = None
        self.z: G = None
        self.o: C = None
        self.s: A = None
        self.q: A = None
        self.v: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: D = None
        self.w: C = None
        self.x: E = None
        self.v: G = None
        self.r: A = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: F = None
        self.z: G = None
        self.o: C = None
        self.s: A = None
        self.q: A = None
        self.v: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: D = None
        self.w: C = None
        self.x: E = None
        self.v: G = None
        self.r: A = None
        self.s: B = None
        self.txt = txt

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

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

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