class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: G = None
        self.o: C = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.p: E = None
        self.x: E = None
        self.q: A = None
        self.t: C = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: G = None
        self.q: D = None
        self.w: A = None
        self.y: F = None
        self.v: B = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: D = None
        self.v: D = None
        self.w: B = None
        self.y: C = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: B = None
        self.v: B = None
        self.o: E = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: D = None
        self.p: B = None
        self.w: D = None
        self.v: E = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.p: E = None
        self.x: E = None
        self.q: A = None
        self.t: C = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: G = None
        self.q: D = None
        self.w: A = None
        self.y: F = None
        self.v: B = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: D = None
        self.v: D = None
        self.w: B = None
        self.y: C = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: B = None
        self.v: B = None
        self.o: E = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: D = None
        self.p: B = None
        self.w: D = None
        self.v: E = None
        self.q: A = None
        self.txt = txt

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

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