class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: C = None
        self.r: C = None
        self.s: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: B = None
        self.p: B = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: B = None
        self.p: B = None
        self.r: C = None
        self.txt = txt

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

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