You can do it in one line of 'main()'.