class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: D = None
        self.o: G = None
        self.q: I = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: D = None
        self.txt = txt

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

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

g.x = e
n.u = l
j.v = e
j.o = e
j.y = l
j.q = h
j.u = f
l.y = b
l.o = h
l.s = g
d.y = h
d.u = b
f.w = b
f.o = b
f.s = b
f.r = b
f.z = n
f.u = l
e.t = l
e.q = j
e.y = h
b.o = d
b.r = l
h.q = j
h.p = j
h.y = j
h.v = f
h.x = n
h.w = l
h.u = d
assert h.u.y.q.q.v.z.u.y.r.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: D = None
        self.o: G = None
        self.q: I = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: D = None
        self.txt = txt

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

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

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