class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: C = None
        self.o: B = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: A = None
        self.r: E = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: A = None
        self.r: E = None
        self.q: A = None
        self.txt = txt

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

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