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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: D = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: E = None
        self.r: G = None
        self.u: H = None
        self.y: B = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: A = None
        self.v: D = None
        self.s: H = None
        self.o: F = None
        self.z: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: D = None
        self.u: G = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: D = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: E = None
        self.r: G = None
        self.u: H = None
        self.y: B = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: A = None
        self.v: D = None
        self.s: H = None
        self.o: F = None
        self.z: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: D = None
        self.u: G = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: B = None
        self.txt = txt

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

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