Updated at 9:17 p.m. EDT
Don't mimic Washington by making excuses, President Barack Obama advised graduating high school students on Monday night as he urged them to take responsibility for failure as well as success.
In remarks to the senior class of Kalamazoo Central High School, Obama said it's easy to blame others when problems arise.
"We see it every day out in Washington, with folks calling each other names and making all sorts of accusations on TV," the president said.
He said the high school kids can and have done better than that.
The 1,700-student school in southwest Michigan bested more than 1,000 schools to win a national education competition in which the prize was Obama as graduation speaker - a feat that is not unheard of but is still unusual for a president. The school was among three finalists picked after the public voted on videos and essays submitted by the schools. The White House made the final selection.
The administration cited Kalamazoo Central's 80 percent-plus graduation rate, improvements in academic performance and a culturally rich curriculum.
Obama, who says a better-educated work force will help the U.S. stay competitive globally, said the school had set an example with its level of community and parental involvement and the high standards of its teachers.
"I think that America has a lot to learn from Kalamazoo Central about what makes for a successful school in this new century," he told some 5,000 people, including the 280 graduates in maroon or white gowns, packed into the basketball arena at Western Michigan University. "It's the key to our future."
"But the most important ingredient is you," Obama said.
He advised the graduates to work hard.
"You could have made excuses - our kids have fewer advantages, our schools have fewer resources, so how can we compete? You could have spent years pointing fingers - blaming parents, blaming teachers, blaming the principal or the superintendent or the government," the president said.
"But instead, you came together. You were honest with yourselves about where you were falling short. And you resolved to do better."
Obama said he didn't always understand that excellence comes through perseverance. He talked about his father leaving the family when he was 2, being raised by a single mother, acting too casual about his future and thinking that hard work and responsibility were old-fashioned ideas that didn't pertain to him.
"But after a few years, living solely for my own entertainment wasn't so entertaining anymore and it wasn't particularly satisfying either," he said. "In refusing to apply myself, I didn't have much to show for myself, nothing I could point to that I was proud of."
Obama shook hands and even hugged some of the graduating seniors as they filed across the stage to collect their diplomas.
Education is widely seen as one hope for Michigan's long-struggling economy. The state has had the nation's highest unemployment rate for four consecutive years, including a 14 percent jobless rate in April. Thousands of manufacturing jobs have been lost, many connected to the auto industry, and the state is trying to diversify its economy with alternative energy, biomedical and other jobs - most of which require education beyond high school.
The White House said more than 170,000 people voted in the Race to the Top High School Commencement Challenge competition. Cincinnati's Clark Montessori Junior High and High School and the Denver School of Science and Technology were the other finalists.
Tevyn Grayson, who is finishing up his junior year at Kalamazoo Central and came to watch friends and cousins graduate, said Obama's appearance sends a powerful message to younger students about the importance of education.
"I know it must be important for the president to come to our city to give a commencement speech," said Grayson, 17. "There's a lot of pressure to succeed now. Can't be the one to mess it up."
About an hour before the graduates filed into the arena, Obama surprised them by dropping into the recreation center as they got ready for the biggest day of their lives to date.
Walking around with a hand-held microphone, Obama told the students to work hard, keep their eyes on the prize and continue to carry with them a sense of excellence.
"There is nothing you can't accomplish," he said, adding that they should consider public service. "I might be warming up the seat for you."