class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.v: D = None
        self.o: E = None
        self.u: E = None
        self.s: B = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: C = None
        self.r: G = None
        self.q: G = None
        self.x: G = None
        self.y: G = None
        self.v: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: G = None
        self.r: B = None
        self.q: B = None
        self.u: B = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: A = None
        self.q: D = None
        self.r: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: C = None
        self.r: G = None
        self.q: G = None
        self.x: G = None
        self.y: G = None
        self.v: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: G = None
        self.r: B = None
        self.q: B = None
        self.u: B = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: A = None
        self.q: D = None
        self.r: D = None
        self.txt = txt

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

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