class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: I = None
        self.p: B = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: H = None
        self.w: I = None
        self.t: H = None
        self.q: I = None
        self.y: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: F = None
        self.r: I = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: A = None
        self.x: A = None
        self.w: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: B = None
        self.p: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: H = None
        self.w: I = None
        self.t: H = None
        self.q: I = None
        self.y: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: F = None
        self.r: I = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: A = None
        self.x: A = None
        self.w: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: B = None
        self.p: F = None
        self.txt = txt

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

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