class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: D = None
        self.p: D = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: D = None
        self.p: D = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.txt = txt

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

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