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

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

m.p = h
m.y = h
m.o = h
m.x = l
m.s = g
m.w = j
f.u = j
f.w = g
f.s = m
g.v = b
g.z = h
g.s = h
g.y = j
a.t = h
h.q = b
h.s = f
b.x = a
b.o = a
b.y = a
b.w = e
j.u = f
j.w = l
j.s = m
e.x = a
e.o = a
e.y = a
e.w = b
l.v = e
l.z = h
l.s = h
l.y = f
assert b.y.t.s.s.x.v.y.txt == "a"