class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: D = None
        self.z: F = None
        self.r: G = None
        self.y: B = None
        self.w: B = None
        self.p: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: D = None
        self.v: C = None
        self.u: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: D = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: D = None
        self.z: F = None
        self.r: G = None
        self.y: B = None
        self.w: B = None
        self.p: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: D = None
        self.v: C = None
        self.u: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: D = None
        self.x: C = None
        self.txt = txt

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

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