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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: E = None
        self.z: B = None
        self.v: H = None
        self.o: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: F = None
        self.x: F = None
        self.q: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: E = None
        self.z: B = None
        self.v: H = None
        self.o: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: F = None
        self.x: F = None
        self.q: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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