class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: B = None
        self.u: E = None
        self.w: E = None
        self.y: D = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: C = None
        self.q: F = None
        self.w: B = None
        self.v: B = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: F = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: C = None
        self.q: F = None
        self.w: B = None
        self.v: B = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: F = None
        self.u: D = None
        self.txt = txt

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

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

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

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